Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python strip non numeric in string

>>> import re
>>> re.sub("[^0-9]", "", "sdkjh987978asd098as0980a98sd")
'987978098098098'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #strip #numeric #string
ADD COMMENT
Topic
Name
7+8 =