numeric_answer = filter(str.isdigit, original_string) numeric_answer = "".join(numeric_answer)
re.sub('D', '', 'aas30dsa20')