Validating Email Addresses With a Filter

  • + 0 comments
    def fun(s):
        return bool(re.match(r"^[a-zA-Z0-9\-_]+@[a-zA-Z0-9]+\.[a-zA-Z]{1,3}$", s))