fix(curriculum): clarify that 'g flag' signifies 'global flag' (#46277)

* Update find-more-than-the-first-match.md

* fix(curriculum): clarify that 'g flag' signifies 'global search flag'
This commit is contained in:
L4rryFisherman
2022-06-02 20:05:04 +02:00
committed by GitHub
parent 2e879b5dbe
commit 3d143b6aaa

View File

@@ -18,7 +18,7 @@ testStr.match(ourRegex);
Here `match` would return `["Repeat"]`.
To search or extract a pattern more than once, you can use the `g` flag.
To search or extract a pattern more than once, you can use the global search flag: `g`.
```js
let repeatRegex = /Repeat/g;