Stripping numbers out of a string

I have a string like this: $433.00

As you can see it’s a price with the Dollar sign, I need to convert that to an integer. How would I do that in Javascript?

Hi,
try a thing like this


var str = '$433.00';
var re = /(\\d+\\.?\\d+)/;
var found = str.match(re);
//["433.00", "433.00"]

but I’m not a regex guru :slight_smile: