VincentSit/ChinaMobilePhoneNumberRegex
Regular expressions that match the mobile phone number in mainland China. / 一组匹配中国大陆手机号码的正则表达式。 observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4276
- days_rel: n/a
- days_push: 1569
- n_releases_24m: 0
Adoption not part of the score
4770 stars · 506 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A curated set of regular expressions (PCRE and POSIX) for matching mainland China mobile phone numbers, including carrier-specific, MVNO, IoT, data-only, and satellite numbers. It is a reference collection of regex patterns rather than an executable library.
Use cases
- validate chinese mobile phone numbers in a form
- match mainland china phone numbers with regex
- detect carrier from a china mobile number
- validate +86 phone number input
- match iot or data-only chinese phone numbers
- copy regex patterns for phone validation into any language
When to choose
- you need lightweight regex patterns for Chinese phone numbers without adding a dependency
- you need carrier, MVNO, IoT, or data-only number distinctions
- you work in any language since regexes are language-agnostic
When to avoid
- you need full phone parsing, formatting, or international coverage (use libphonenumber instead)
- you need reliable carrier detection after number portability (MNP makes it inaccurate)
- you need runtime updates as new number ranges are released
Facets
library · maturity active
parser developer-tools developer-tools cross-platform regex phone-number-validation china mobile-phone carrier-detection pcre posix automation
1 source
- readme: https://github.com/VincentSit/ChinaMobilePhoneNumberRegex · fetched 2026-08-28 · ed81fdc5fa27
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| VincentSit/ChinaMobilePhoneNumberRegex | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="VincentSit/ChinaMobilePhoneNumberRegex")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem