import re

line = "From stephen.marquard@uct.ac.za Sat Jan  5 09:14:16 2008"

x = re.findall('@(\S+)', line)

print x

x = 'From: Using the : character'
y = re.findall('^F.+?:', x)
print y


line = "From stephen.marquard@uct.ac.za Sat Jan  5 09:14:16 2008"
x = re.findall('\S+?@\S+', line)

print x

82a8f43521c680a537692e5dc727857cd7f568c0
import re

line = "From stephen.marquard@uct.ac.za Sat Jan  5 09:14:16 2008"

x = re.findall('@(\S+)', line)

print x

x = 'From: Using the : character'
y = re.findall('^F.+?:', x)
print y


line = "From stephen.marquard@uct.ac.za Sat Jan  5 09:14:16 2008"
x = re.findall('\S+?@\S+', line)

print x
