You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 9-regular-expressions/17-regexp-methods/article.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -230,17 +230,17 @@ Usando una función nos da todo el poder del reemplazo, porque obtiene toda la i
230
230
231
231
## str.replaceAll(str|regexp, str|func)
232
232
233
-
This method is essentially the same as`str.replace`, with two major differences:
233
+
Este método es escencialmente el mismo que`str.replace`, con dos diferencias principales:
234
234
235
-
1.If the first argument is a string, it replaces *all occurences*of the string, while`replace`replaces only the *first occurence*.
236
-
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`.
235
+
1.Si el primer argumento es un string, reemplaza *todas las ocurrencias* del string, mientras qye `replace`solamente reemplaza la *primera ocurrencia*.
236
+
2.Si el primer argumento es una expresión regular sin la bandera`g`, funciona igual que`replace`.
237
237
238
-
The main use case for `replaceAll` is replacing all occurences of a string.
238
+
El caso de uso principal para `replaceAll`es el reemplazo de todas las ocurrencias de un string.
0 commit comments