remove all number from string python unless after special characters code example
Example: python remove all except numbers
>>> import re
>>> re.sub('\D', '', 'aas30dsa20')
'3020'
>>> import re
>>> re.sub('\D', '', 'aas30dsa20')
'3020'