You are viewing a single comment's thread. Return to all comments →
def fun(s): try: username, rest = s.split('@') websitename, extension = rest.split('.') except ValueError: return False if not username.replace('-', '').replace('_', '').isalnum(): return False if not websitename.isalnum(): return False if not extension.isalpha() or not (1 <= len(extension) <= 3): return False return True
Seems like cookies are disabled on this browser, please enable them to open this website
Validating Email Addresses With a Filter
You are viewing a single comment's thread. Return to all comments →