This commit is contained in:
hanko 2024-07-12 15:54:49 +08:00
parent 8e76f087ff
commit b0327c1ca1

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