bradxr
8/4/2018 - 7:46 PM

Match All Non-Numbers

Shortcut - \D Equal to [^0-9]

let numString = "Your sandwich will be $5.00";
let noNumRegex = /\D/g;
console.log(numString.match(noNumRegex)); // [Y,o,u,r, ,s,a,n,d,w,i,c,h, ,w,i,l,l, ,b,e, ,$,.]