Answers for "is where a way to ignore letter and keep numbers from a string"

1

python remove all except numbers

>>> import re
>>> re.sub('D', '', 'aas30dsa20')
'3020'
Posted by: Guest on April-29-2020

Code answers related to "is where a way to ignore letter and keep numbers from a string"

Python Answers by Framework

Browse Popular Code Answers by Language