python re replace function code example
Example: python regex substitute
import re
s = "Example String"
replaced = re.sub('[ES]', 'a', s)
print replaced
import re
s = "Example String"
replaced = re.sub('[ES]', 'a', s)
print replaced