Last active
March 20, 2024 18:15
-
-
Save rsalaza4/99b03bec4374c3ccc484751c42a92560 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
def get_email(self): | |
# Find all strings that follow emails conventions | |
match = re.search(r'[\w.+-]+@[\w-]+\.[\w.-]+', self.text) | |
# Assign word to email address | |
self.emailAddress = match.group(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment