From d644a2f4940204eccc7fa3eca2c773b62a67241e Mon Sep 17 00:00:00 2001 From: greggubarev Date: Tue, 16 Oct 2018 12:26:45 +0400 Subject: [PATCH] Add solution (#19228) Add solution (https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-one-or-more-times) --- .../match-characters-that-occur-one-or-more-times.english.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-one-or-more-times.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-one-or-more-times.english.md index bd7b8e3634..b7a6193000 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-one-or-more-times.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-one-or-more-times.english.md @@ -54,6 +54,8 @@ let result = difficultSpelling.match(myRegex);
```js -// solution required +let difficultSpelling = "Mississippi"; +let myRegex = /s+/g; // Change this line +let result = difficultSpelling.match(myRegex); ```