Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python replace text

#use (variable name).replace('something', 'smth')
#Example: 
str = "codegrapper"
str.replace('grapper', 'grepper')
print(str)
#output: codegrepper
Source by www.runoob.com #
 
PREVIOUS NEXT
Tagged: #python #replace #text
ADD COMMENT
Topic
Name
3+9 =