Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python replace only first instance

text.replace("text", "new", count)
# count is the number of instances you want to replace
 
PREVIOUS NEXT
Tagged: #python #replace #instance
ADD COMMENT
Topic
Name
9+4 =