Discuss / Python / 随便交作业,工作中,建议大家使用正则表达式在线的工具网站

随便交作业,工作中,建议大家使用正则表达式在线的工具网站

Topic source

B O O M!

#1 Created at ... [Delete] [Delete and Lock User]

    if re.match(r'([\d\w\.\_]+)@([\d\w\.\_]+)\.([\d\w]+)$', addr):

        return True

    return False


  • 1

Reply