From 960811e31f5427c0946122ea60a2454ec1509f9f Mon Sep 17 00:00:00 2001 From: Aashis kumar Date: Tue, 5 Mar 2019 23:42:55 +0530 Subject: [PATCH] Solution to specify-exact-number-of-matches.english JavaScript Challenge (#34757) * Update specify-exact-number-of-matches.english.md Added an explanation to the working code too * fix: removed i flag and comments --- .../specify-exact-number-of-matches.english.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/specify-exact-number-of-matches.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/specify-exact-number-of-matches.english.md index 82c9f46c1e..cc0bdb13d7 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/specify-exact-number-of-matches.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/specify-exact-number-of-matches.english.md @@ -60,6 +60,8 @@ let result = timRegex.test(timStr);
```js -// solution required +let timStr = "Timmmmber"; +let timRegex = /Tim{4}ber/; // Change this line +let result = timRegex.test(timStr); ```