From 3d143b6aaa5ffb23893c3ca21381784740900b33 Mon Sep 17 00:00:00 2001 From: L4rryFisherman Date: Thu, 2 Jun 2022 20:05:04 +0200 Subject: [PATCH] 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' --- .../regular-expressions/find-more-than-the-first-match.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/find-more-than-the-first-match.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/find-more-than-the-first-match.md index e9e55893d6c..e6964af462a 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/find-more-than-the-first-match.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/find-more-than-the-first-match.md @@ -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;