Parsing for email addresses

galileo228 mattbarkan at gmail.com
Mon Feb 15 18:34:35 EST 2010


Hey all,

I'm trying to write python code that will open a textfile and find the
email addresses inside it. I then want the code to take just the
characters to the left of the "@" symbol, and place them in a list.
(So if galileo228 at gmail.com was in the file, 'galileo228' would be
added to the list.)

Any suggestions would be much appeciated!

Matt



More information about the Python-list mailing list