Skip to content

Instantly share code, notes, and snippets.

@mohdsanadzakirizvi
Created January 26, 2020 02:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohdsanadzakirizvi/8036a15c1e5c838f01232d1be829ce61 to your computer and use it in GitHub Desktop.
Save mohdsanadzakirizvi/8036a15c1e5c838f01232d1be829ce61 to your computer and use it in GitHub Desktop.
import re
# give your filename here
with open("filename.txt", "r") as fp:
text = fp.read()
re.findall(r"[\w.-]+@[\w.-]+", text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment