mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-30 03:03:06 -05:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user