Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python replace regex

import re
s = "Example String"
replaced = re.sub('[ES]', 'a', s)
print replaced 
# will print 'axample atring'
 
PREVIOUS NEXT
Tagged: #python #replace #regex
ADD COMMENT
Topic
Name
3+7 =