import re
mobile = '18312423454'
MOBILE = "^1[358]\d{9}$|^147\d{8}$|^179\d{8}$"
p = re.compile(MOBILE)
if p.match(mobile):
print(mobile)
Python中用正则匹配手机号码
猜你喜欢
转载自www.cnblogs.com/qiaoer1993/p/11945233.html
今日推荐
周排行