Answers for "repalce non numbers with notthing, python"

2

python strip non numeric in string

>>> import re
>>> re.sub("[^0-9]", "", "sdkjh987978asd098as0980a98sd")
'987978098098098'
Posted by: Guest on September-28-2020

Python Answers by Framework

Browse Popular Code Answers by Language