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