scrimba
Learn Regex
Match All Non-Numbers
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

AboutCommentsNotes
Match All Non-Numbers
Expand for more info
index.js
run
preview
console
let numString = "Your sandwich will be $5.00";
let noNumRegex = /\d/g; // Change this line
let result = numString.match(noNumRegex).length;
console.log(result);
Console
index.html
-0:32