Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- text = input()
- pattern = r"(^|(?<=\s))([a-z0-9]+[\.\-\_a-z]*)@([a-z\-]+)(\.[a-z]+)+\b"
- emails = re.finditer(pattern, text)
- for email in emails:
- current_email = email.group()
- print(current_email)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement