import re

def validateEmail(email):

    if len(email) > 7:
        if re.match("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?

)$", email) != None:
            return 1
    return 0

posted on 2017-05-11 08:23  lxjshuju  阅读(279)  评论(0编辑  收藏  举报