DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+8 =
Submit