From f0ce844ca01e32848f5b6155f16ea93f14c6c7f5 Mon Sep 17 00:00:00 2001 From: Nemanja Jeremic Date: Tue, 13 Nov 2018 08:24:33 +0100 Subject: [PATCH] updated solution styled as code block (#34266) --- .../match-all-letters-and-numbers/index.md | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/match-all-letters-and-numbers/index.md b/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/match-all-letters-and-numbers/index.md index b28a08ed4b..85d932184a 100644 --- a/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/match-all-letters-and-numbers/index.md +++ b/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/match-all-letters-and-numbers/index.md @@ -1,18 +1,16 @@ --- title: Match All Letters and Numbers --- -The Problem +## 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 +## Solution -This is a stub. Help our community expand it. - -This quick style guide will help ensure your pull request gets accepted. +```let quoteSample = "The five boxing wizards jump quickly."; +let alphabetRegexV2 = /\w/gi; // Change this line +let result = quoteSample.match(alphabetRegexV2).length; +```