import rex = 'asdf(a)asdf.com'found = re.sub(r'\(a\)', '@', x.strip(), flags=re.IGNORECASE)print(found)
Standard input is empty
asdf@asdf.com
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!