util/lib/analysis_package/utils/phone_util.py

18 lines
494 B
Python
Raw Permalink Normal View History

2024-05-12 12:18:24 +00:00
# -*- coding: UTF-8 -*-
"""
@Project -> File IoD_data_analysis_tool -> phone_util
@IDE PyCharm
@Author rengengchen
@Date 2022/5/17 15:59
@Desc
"""
import re
re_phone = re.compile(r'^(?:(?:13[0-9])'
r'|(?:14(?:0|[5-7]|9))'
r'|(?:15(?:[0-3]|[5-9]))'
r'|(?:16(?:2|[5-7]))'
r'|(?:17[0-8])'
r'|(?:18[0-9])'
r'|(?:19(?:[0-3]|[5-9])))\d{8}$')