import re m = re.match(r'^:([^!]+)!([^@]+)@(.*)$', ':apples!apples@apples.com')print m.groups()
Standard input is empty
('apples', 'apples', 'apples.com')
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!