We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55d806d commit dc9683eCopy full SHA for dc9683e
9-regular-expressions/17-regexp-methods/article.md
@@ -232,10 +232,10 @@ Using a function gives us the ultimate replacement power, because it gets all th
232
233
This method is essentially the same as `str.replace`, with two major differences:
234
235
-1. If the first argument is a string, it replaces *all occurences* of the string, while `replace` replaces only the *first occurence*.
+1. If the first argument is a string, it replaces *all occurrences* of the string, while `replace` replaces only the *first occurrence*.
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`.
237
238
-The main use case for `replaceAll` is replacing all occurences of a string.
+The main use case for `replaceAll` is replacing all occurrences of a string.
239
240
Like this:
241
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments