DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
replace number with string python
x = re.sub(r"d+", "NUMB", str(x)) #Replaces digits with 'NUMB'
PREVIOUS
NEXT
Tagged:
#replace
#number
#string
#python
ADD COMMENT
Topic
COMMENT
Name
2+9 =
Submit