My question is how to make the three steps I use into one step; how do I combine these to just one?
Thank you!
var string = "1.4 Whatever";
var a = string.replace(/[0-9]/g,'');
var b = a.replace(/[\.]/g, '');
var c = b.replace(/ /g, '');
console.log(c);
[0-9. ]matches any digit or.or a space.