Validating Email Addresses With a Filter

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