I have strings like " $250.00", " $100.00" , " $1000.88", " $75.00" and I would like to get just the numbers with the period in the middle. i.e.: "250.00" "100.00" "1000.88" "75.00"
Also, the $ could be another currency. Not necessarily $. So, I just need to get numbers and period.
I tried with some regular expressions that I know but couldn't do it.
var initialPrice = " $250.00" // I need just 250.00
I need to get rid of the spaces if possible. I just need the numbers and the period.
Thanks!!!!