Created
January 8, 2015 14:59
-
-
Save amontalenti/f917987b16fbe5074b65 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 | |
>>> eml = re.compile(r"([^@|\s]+@[^@]+\.[^@|\s]+)") | |
>>> match = eml.search("some text that has a test@test.com email address") | |
>>> match.group(1) | |
"test@test.com" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment