i retrive a text from a div with the following options : "1,000" $ OR "1,000.57" $ "20" OR "20.5"
i need to extract the number only ( int \ float) without the comma sign and without the dollar sign. as for now im using the following mask : /\d+/g;
but with this mask i get the number when it doesnt include comma and it get the number only to the decimal point ( e.g 290.5 -> 290 instead of it's original ) i'm looking for the correct regex mask for that so i will be able to parse the number after i get it .