Skip to content

Commit 3ada434

Browse files
committed
fix: resolve merge conflicts and standardize language in regexp methods article
1 parent f14077b commit 3ada434

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

9-regular-expressions/17-regexp-methods/article.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,17 +232,10 @@ O uso de uma função nos dá o poder de substituição definitivo, porque ela o
232232

233233
Este método é essencialmente o mesmo que `str.replace`, com duas diferenças principais:
234234

235-
<<<<<<< HEAD
236235
1. Se o primeiro argumento for uma string, ele substitui *todas as ocorrências* da string, enquanto `replace` substitui apenas a *primeira ocorrência*.
237236
2. Se o primeiro argumento for uma expressão regular sem a flag `g`, haverá um erro. Com a flag `g`, funciona da mesma forma que `replace`.
238237

239238
O principal caso de uso de `replaceAll` é substituir todas as ocorrências de uma string.
240-
=======
241-
1. If the first argument is a string, it replaces *all occurrences* of the string, while `replace` replaces only the *first occurrence*.
242-
2. If the first argument is a regular expression without the `g` flag, there'll be an error. With `g` flag, it works the same as `replace`.
243-
244-
The main use case for `replaceAll` is replacing all occurrences of a string.
245-
>>>>>>> d78b01e9833009fab534462e05c03cffc51bf0e3
246239

247240
Assim:
248241

0 commit comments

Comments
 (0)