import rerx = r'[\w.+-]+@[^\W_]+[.-][A-Za-z0-9.-]+'s = 'some@mail.com and more email@somemore-here.com'print(re.findall(rx, s))
Standard input is empty
['some@mail.com', 'email@somemore-here.com']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!