Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- line = input()
- pattern = r"(^|\s)([a-z0-9]+[\.\-\_]*[a-z0-9]*@[a-z\-?]+(\.[a-z]+)+\b)"
- matches = re.findall(pattern, line)
- for match in matches:
- print(match[1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement