Created
January 26, 2020 02:11
-
-
Save mohdsanadzakirizvi/8036a15c1e5c838f01232d1be829ce61 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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