This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Idea taken from https://gist.github.com/jackcarter/d86808449f0d95060a40 | |
| # This script requires python lib: requests | |
| # You can install by: `python -m pip install requests` | |
| import time | |
| import codecs | |
| import requests | |
| reader = codecs.getreader("utf-8") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| areaName | checkKey | countryCode | phoneCode | |
|---|---|---|---|---|
| 中国大陆 | ^(86){0,1}1\\d{10}$ | CN | 86 | |
| 中国香港 | ^(00){0,1}(852){1}0{0,1}[1,5,6,9,4](?:\\d{7}|\\d{8}|\\d{12})$ | HK | 852 | |
| 中国澳门 | ^(00){0,1}(853){1}6\\d{7}$ | MO | 853 | |
| 中国台湾 | ^(00){0,1}(886){1}0{0,1}[6,7,9](?:\\d{7}|\\d{8}|\\d{10})$ | TW | 886 | |
| 韩国 | ^(00){0,1}(82){1}0{0,1}[7,1](?:\\d{8}|\\d{9})$ | KR | 82 | |
| 日本 | ^(00){0,1}(81){1}0{0,1}[7,8,9](?:\\d{8}|\\d{9})$ | JP | 81 | |
| 美国 | ^(00){0,1}(1){1}\\d{10,12}$ | US | 1 | |
| 加拿大 | ^(00){0,1}(1){1}\\d{10}$ | CA | 1 | |
| 英国 | ^(00){0,1}(44){1}[347-9](\\d{8,9}|\\d{11,12})$ | GB | 44 |
OlderNewer