diff --git a/client/src/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/match-whitespace/index.md b/client/src/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/match-whitespace/index.md index 6c6d0fb8439..6d110ae9965 100644 --- a/client/src/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/match-whitespace/index.md +++ b/client/src/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/match-whitespace/index.md @@ -1,10 +1,17 @@ +--- +title: Match Whitespace --- -title: Match Whitespace ---- + ## Match Whitespace -This is a stub. Help our community expand it. +### Problem: -This quick style guide will help ensure your pull request gets accepted. +We need to change the regex ```countWhiteSpace``` to look for multiple whitespace characters in a string. - +### Solution: + +```js +let sample = "Whitespace is important in separating words"; +let countWhiteSpace = /\s/g; // Change this line +let result = sample.match(countWhiteSpace); +```