import re x = 'From mohamed.dahab@gmail.com Fri Jan 5 09:14:16 2016'y = re.findall('@(.*)\s', x) print (y)
Standard input is empty
['gmail.com Fri Jan 5 09:14:16']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!