You are viewing a single comment's thread. Return to all comments →
Wierd..
This code works fine on my laptop, but not here? Added regexp, but still why???
if name == 'main': email_count = int(input().strip()) to_validate = [input().strip() for _ in range(email_count)]
import email.utils for email_candidate in to_validate: name, email_str = email.utils.parseaddr(email_candidate) # print(email_candidate, " --> ", name, email_str) if email_str != "": print(email.utils.formataddr((name, email_str)))
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 →
Wierd..
This code works fine on my laptop, but not here? Added regexp, but still why???
if name == 'main': email_count = int(input().strip()) to_validate = [input().strip() for _ in range(email_count)]