I need to get a specific content from a string that is returned in javascript.
I thought about getting his match with regular expression to get exactly the numbers, points and commas of the monetary return that has in part of the text, the problem is that the letters also come in the return.
For example, I have the phrase "Total Estimated Effective: R $ 209,502.84"
I wanted to get only 209,502.84
I've been in
var total = $(".totalEstimadoVigente").html().match("(?:\.|,|[0-9])*").join('');
How to solve this ER?