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
This commit is contained in:
greggubarev
2018-10-16 08:21:24 +04:00
committed by Quincy Larson
parent 848458b142
commit bb9223b17b

View File

@ -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. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/certifications/javascript-algorithms-and-data-structures/regular-expressions/match-all-letters-and-numbers/index.md' target='_blank' rel='nofollow'>Help our community expand it</a>.
<a href='https://github.com/freecodecamp/guides/blob/master/README.md' target='_blank' rel='nofollow'>This quick style guide will help ensure your pull request gets accepted</a>.
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
## 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;
```