Search
 
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
Name
3+6 =