How do we remove all non-numeric characters from a string in Python?
@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'