You are viewing a single comment's thread. Return to all comments →
import re email_regex = re.compile(r'.+<[a-z][\w\.\-\_]+@[a-z]+\.[a-z]{1,3}>', flags=re.I) for _ in range(int(input())): if val := email_regex.search(input()): print(val.group())
Seems like cookies are disabled on this browser, please enable them to open this website
Validating and Parsing Email Addresses
You are viewing a single comment's thread. Return to all comments →