<human>:  Python: removing characters except digits from string
<bot>: Here is some code to substitute ASCII letters in string 'aas30dsa20' with empty string ''

re.sub('\\D', '', 'aas30dsa20')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.