You are viewing a single comment's thread. Return to all comments →
from re import search n = int(input()) line = "" pattern = r"<[a-zA-Z]([\w\.\-])+@([a-zA-Z])+\.([a-zA-Z]){1,3}>$" for _ in range(n): line = input() if search(pattern, line) is not None: print(line)
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 →