Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python replace first

'TESTstringTEST'.replace('TEST', 'replaced', 1)
# output 'replacedstringTEST'
 
PREVIOUS NEXT
Tagged: #python #replace
ADD COMMENT
Topic
Name
4+3 =