You are viewing a single comment's thread. Return to all comments →
import re def fun(s): pattern = r'^[\w-]+@[a-zA-Z0-9]+.[a-zA-Z]{1,3}$' return bool(re.match(pattern, s))
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 →
import re def fun(s): pattern = r'^[\w-]+@[a-zA-Z0-9]+.[a-zA-Z]{1,3}$' return bool(re.match(pattern, s))