, , , , , "1,109,889.23". , use [\d,.\x20]+ ( , , , \x20, , ), . , , , [^\d,.\x20]. This will work for any currency format, not just those that use the dollar sign. It also allows for several types of punctuation, for example, allowing spaces to separate multiple numbers instead of commas. However, I agree with Tim Pitzker that regex may not be the best tool for this job.
source
share