I am doing some webscraping and trying to filter this variable.
var oldtext = $0.00Amount
var newtext= text.replace(/\D/g, "");
This results in '000' and I need to keep the period.
I know I could write a replace function for each $, A, M, O, U, N, T but is there a smarter way to do that?