Skip to content

Instantly share code, notes, and snippets.

@mrdougwright
Last active December 20, 2015 09:18
Show Gist options
  • Save mrdougwright/6106387 to your computer and use it in GitHub Desktop.
Save mrdougwright/6106387 to your computer and use it in GitHub Desktop.
My first ever Python program I used to pull emails out of a messy document.
myList = []
with open('file.txt') as file:
for line in file:
myList += line.split(' ')
for word in myList:
if '@' in word:
print word
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment