Home

Awesome

ChinaMobilePhoneNumberRegex

ChinaMobilePhoneNumberRegex is still actively maintained, we are committed to fixing bugs and merging good quality PRs from the wider community.

中文文档

A set of regular expressions to match the mobile phone number in mainland China.

Limitation

The mobile number portability(MNP) service in mainland China has been officially available on December 1, 2019, China Standard Time. It is no longer accurate to detect carriers by mobile phone numbers. However, there is no alternative.

Regular Expressions (PCRE)

If you need POSIX standard regular expressions, Click here.

Match all numbers (Phone number + IoT number + Data only number)

^(?:\+?86)?1(?:3\d{3}|5[^4\D]\d{2}|8\d{3}|7(?:[0-35-9]\d{2}|4(?:0\d|1[0-2]|9\d))|9[0-35-9]\d{2}|6[2567]\d{2}|4(?:(?:10|4[01])\d{3}|[68]\d{4}|[579]\d{2}))\d{6}$

Match all numbers with SMS (Phone number + Data only number)

^(?:\+?86)?1(?:3\d{3}|5[^4\D]\d{2}|8\d{3}|7(?:[0-35-9]\d{2}|4(?:0\d|1[0-2]|9\d))|9[0-35-9]\d{2}|6[2567]\d{2}|4[579]\d{2})\d{6}$

Mobile phone number

Match all

^(?:\+?86)?1(?:3\d{3}|5[^4\D]\d{2}|8\d{3}|7(?:[235-8]\d{2}|4(?:0\d|1[0-2]|9\d))|9[0-35-9]\d{2}|66\d{2})\d{6}$

Match China Mobile

^(?:\+?86)?1(?:3(?:4[^9\D]|[5-9]\d)|5[^3-6\D]\d|7[28]\d|8[23478]\d|9[578]\d)\d{7}$

Match China Unicom

^(?:\+?86)?1(?:3[0-2]|[578][56]|66|96)\d{8}$

Match China Telecom

^(?:\+?86)?1(?:3(?:3\d|49)\d|53\d{2}|8[019]\d{2}|7(?:[37]\d{2}|40[0-5])|9[0139]\d{2})\d{6}$

Match China Broadcast Network

^(?:\+?86)?192\d{8}$

Match Inmarsat (Satellite Communications)

^(?:\+?86)?1749\d{7}$

Match Emergency Communication Support Center of MIIT (Emergency communications)

^(?:\+?86)?174(?:0[6-9]|1[0-2])\d{6}$

MVNO number

Match all

^(?:\+?86)?1(?:7[01]|6[257])\d{8}$

Match China Mobile

^(?:\+?86)?1(?:65\d|70[356])\d{7}$

Match China Unicom

^(?:\+?86)?1(?:70[4789]|71\d|67\d)\d{7}$

Match China Telecom

^(?:\+?86)?1(?:70[012]|62\d)\d{7}$

IoT number

Match all

^(?:\+?86)?14(?:[14]0|41|[68]\d)\d{9}$

Match China Mobile

^(?:\+?86)?14(?:4[01]|8\d)\d{9}$

Match China Unicom

^(?:\+?86)?146\d{10}$

Match China Telecom

^(?:\+?86)?1410\d{9}$

Data only number

Match all

^(?:\+?86)?14[579]\d{8}$

Match China Mobile

^(?:\+?86)?147\d{8}$

Match China Unicom

^(?:\+?86)?145\d{8}$

Match China Telecom

^(?:\+?86)?149\d{8}$

Test/Debug Online

https://regex101.com
https://regexr.com
https://www.debuggex.com (PCRE visualizer)

Rules

Carrier

Carrier <sup>[1]<sup/>Prefix
China Mobile134-0~8 / 135 / 136 / 137 / 138 / 139 / 150 / 151 / 152 / 157 / 158 / 159 / 172 / 178 / 182 / 183 / 184 / 187 / 188 / 195 / 197 / 198
China Unicom130 / 131 / 132 / 155 / 156 / 166 / 175 / 176 / 185 / 186 / 196
China Telecom133 / 134-9 / 153 / 173 / 174-00~05 / 177 / 180 / 181 / 189 / 190 / 191 / 193 / 199
China Broadcast Network192
Inmarsat (Satellite) <sup>[2]<sup/>174-9
Emergency Communication Support Center of MIIT (Emergency communications)174-06~12

MVNO

Carrier <sup>[1]<sup/>Prefix
China Mobile165 / 1703 / 1705 / 1706
China Unicom167 / 1704 / 1707 / 1708 / 1709 / 171
China Telecom162 / 1700 / 1701 / 1702

IoT

Carrier <sup>[1]<sup/>Prefix
China Mobile1440X / 1441X / 148XX
China Unicom146XX
China Telecom1410X

Data-plans only

Carrier <sup>[1]<sup/>PrefixVoice calls <sup>[3]<sup/>
China Mobile147Yes
China Unicom145No
China Telecom149Yes
  1. Since MNP has been piloted in some areas, for users who have changed to another carrier, the mobile phone number prefix can no longer reflect its current carrier.
  2. Operated by China Transport Telecommunication & Information Center.
  3. According to the relevant documents of the MIIT, the voice call function is allowed in 145 / 147 / 149 prefixes, carriers can decide whether to provide voice call function according to the needs of their customers. At present, the 147 / 149 prefixes that support voice calls is available.

Reference

Telephone numbers in China - Wikipedia

Stay up to date

Since the mobile phone number regular expression is time-sensitive, when any regular expression is updated, a new version will be released to trigger GitHub's mail system to notify all users who are watching the repository. If you want to be notified when any regular expressions are updated, please watch this repository.

How to watch releases for a repository?

Release Notes

May 3, 2020

April 16, 2020

April 7, 2020

December 26, 2019

December 24, 2019

December 1, 2019

January 10, 2019

January 7, 2019

December 30, 2018

December 29, 2018

August 9, 2017

October 15, 2016

April 5, 2016

December 19, 2014

License

MIT