From bb9223b17b3eee68402758f9850562f6c89f9ca5 Mon Sep 17 00:00:00 2001 From: greggubarev Date: Tue, 16 Oct 2018 08:21:24 +0400 Subject: [PATCH] Javascript: Edit hint Match All Letters and Numbers (#19238) * Javascript: Edit hint Match All Letters and Numbers Edit hint Match All Letters and Numbers (https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/match-all-letters-and-numbers and https://guide.freecodecamp.org/certifications/javascript-algorithms-and-data-structures/regular-expressions/match-all-letters-and-numbers/) * Update index.md --- .../match-all-letters-and-numbers/index.md | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/client/src/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/match-all-letters-and-numbers/index.md b/client/src/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/match-all-letters-and-numbers/index.md index b28a08ed4b..1ff6c285c6 100644 --- a/client/src/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/match-all-letters-and-numbers/index.md +++ b/client/src/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/match-all-letters-and-numbers/index.md @@ -1,18 +1,18 @@ --- -title: Match All Letters and Numbers +title: Match All Letters and Numbers --- -The Problem -Use the shorthand character class \w to count the number of alphanumeric characters in various quotes and strings. - -Solution -let quoteSample = "The five boxing wizards jump quickly."; -let alphabetRegexV2 = /\w/gi; // Change this line -let result = quoteSample.match(alphabetRegexV2).length; ## Match All Letters and Numbers -This is a stub. Help our community expand it. - -This quick style guide will help ensure your pull request gets accepted. - +## The Problem: + +Use the shorthand character class \w to count the number of alphanumeric characters in various quotes and strings. + +## Solution: + +```js +let quoteSample = "The five boxing wizards jump quickly."; +let alphabetRegexV2 = /\w/gi; // Change this line +let result = quoteSample.match(alphabetRegexV2).length; +```