Files
2018-11-13 12:54:33 +05:30

498 B

title
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 alphabetRegexV2 = /\w/gi; // Change this line  
let result = quoteSample.match(alphabetRegexV2).length;