You are viewing a single comment's thread. Return to all comments →
import re pattern = r'^\w+ <[^\W_][\w.-]+@[a-z]*\.[a-z]{1,3}>$' [print(x) for _ in range(int(input())) if (x:= input()) and re.search(pattern, x)]
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 →