This commit is contained in:
hanko 2024-07-12 16:00:39 +08:00
parent b0327c1ca1
commit e9d9ab9d4b

@ -1,4 +1,4 @@
# 手机号正则+2
# 手机号正则+3
import re
phone_num = re.compile(r'\d{11}')
print(phone_num.search('我的电话是13512345678'))