re in python to replace a particular patter 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