diff --git a/client/src/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/match-everything-but-letters-and-numbers/index.md b/client/src/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/match-everything-but-letters-and-numbers/index.md index c8cdc8467a..2f5fb94feb 100644 --- a/client/src/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/match-everything-but-letters-and-numbers/index.md +++ b/client/src/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/match-everything-but-letters-and-numbers/index.md @@ -1,10 +1,17 @@ +--- +title: Match Everything But Letters and Numbers --- -title: Match Everything But Letters and Numbers ---- + ## Match Everything But Letters and Numbers -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 use the shorthand character class \W to count the number of non-alphanumeric characters in various quotes and strings. - +### Solution: + +```js +let quoteSample = "The five boxing wizards jump quickly."; +let nonAlphabetRegex = /\W/gi; // Change this line +let result = quoteSample.match(nonAlphabetRegex).length; +```