Validating Email Addresses With a Filter

  • + 0 comments

    import re def fun(s): pattern = r'^[\w-]+@[a-zA-Z0-9]+.[a-zA-Z]{1,3}$' return bool(re.match(pattern, s))