摘要: 1、匹配以字母数字组合成的编号、中间用-连接 regId=re.compile(r'[A-Za-z-]*\d+') 2、匹配汉字 regName=re.compile(r'[\u4e00-\u9fa5]+') 3、 匹配3位区号-8位/4位区号-7位或8位/11位手机号/8位固话 regPhone= 阅读全文
posted @ 2018-05-31 10:45 尘世中一个迷途小书童 阅读(95) 评论(0) 推荐(0) 编辑