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