From 086758250bbc94e8395ce3bccfc25622daac620a Mon Sep 17 00:00:00 2001 From: greggubarev Date: Tue, 16 Oct 2018 01:33:13 +0400 Subject: [PATCH] Javascript: edit hint (#19229) --- .../index.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/client/src/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-one-or-more-times/index.md b/client/src/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-one-or-more-times/index.md index 6a60378b967..01946c2bd50 100644 --- a/client/src/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-one-or-more-times/index.md +++ b/client/src/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-one-or-more-times/index.md @@ -1,12 +1,13 @@ ---- -title: Match Characters that Occur One or More Times ---- + ## Match Characters that Occur One or More Times - ## the problem: + ## Problem: You want to find matches when the letter s occurs one or more times in "Mississippi". Write a regex that uses the + sign. - ## the solution + + ## Solution: +```js let difficultSpelling = "Mississippi"; let myRegex = /s+/g; // this is the solution let result = difficultSpelling.match(myRegex); +```