Tell us what’s happening:
Can you please tell on how can I combine the regex and the shorthand class /\w+/. I am facing issue in the same. I tried using w as shorthand character class but it didn’t worked out.
Can you please help me in the same?
Your code so far
let quoteSample = "The five boxing wizards jump quickly."; let alphabetRegexV2 = /[a-zA-Z0-9_]/ig; // Change this line let result = quoteSample.match(alphabetRegexV2).length;
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36.