import reemail = 'serebro@gmail.com'm = re.search(r'(.+)@(.+)\.(.+)', email)if m: print(list(m.groups()))
Standard input is empty
['serebro', 'gmail', 'com']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!