SyntaxFix
Write A Post
Hire A Developer
Questions
@Ned Batchelder and @newacct provided the right answer, but ...
Just in case if you have comma(,) decimal(.) in your string:
import re re.sub("[^\d\.]", "", "$1,999,888.77") '1999888.77'