I might have a string:
"Foo Bar, FooTown, $100,00"
Now I need to split that string by a comma, but that would split it wrongly, as the $100,00
contains a comma too.
So I first want to look in the string, are there any numbers with a comma, and if so, replace the comma with a fullstop. so it looks like:
"Foo Bar, FooTown, $100.00"
EDIT:
It will always be small numbers, there won't be more than one ,
or .
, but it might be $1 $10 $100 $1000
The string might or might not have spaces before the ,
This is a SMS message.