Unfortunately none of the answers above worked for me.
I was looking to convert currency numbers from strings like $123,232,122.11
(1232332122.11) or USD 123,122.892
(123122.892) or any currency like ? 98,79,112.50
(9879112.5) to give me a number output including the decimal pointer.
Had to make my own regex which looks something like this:
str = str.match(/\d|\./g).join('');