Python using re sub to replace symbol followed by letter code example
Example: python replace regex
import re
s = "Example String"
replaced = re.sub('[ES]', 'a', s)
print replaced
# will print 'axample atring'
import re
s = "Example String"
replaced = re.sub('[ES]', 'a', s)
print replaced
# will print 'axample atring'