# VincentSit/ChinaMobilePhoneNumberRegex

Regular expressions that match the mobile phone number in mainland China. / 一组匹配中国大陆手机号码的正则表达式。

Repository: https://github.com/VincentSit/ChinaMobilePhoneNumberRegex
Canonical: https://ross.abutalabs.com/products/chinamobilephonenumberregex
License: MIT
License Family: permissive
Topics: phone-number, regular-expression, mainland-china, china-unicom, china-mobile, china-telecom, regex
Last push: 2022-05-17T03:02:26+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4276, "days_push": 1569, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4770, forks 506 (observed 2026-08-28T04:08:59.381733+00:00)

## What it is
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
- artifact type: library
- maturity: active
- function: parser, developer-tools
- domain: developer-tools
- platform: cross-platform
- tags: regex, phone-number-validation, china, mobile-phone, carrier-detection, pcre, posix, automation

## Member repositories
- VincentSit/ChinaMobilePhoneNumberRegex (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:59.381733+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:18:48.324485+00:00, confidence not recorded.
  - readme: https://github.com/VincentSit/ChinaMobilePhoneNumberRegex (fetched 2026-08-28T04:08:59.381733+00:00, sha ed81fdc5fa27)
- Data as of 2026-08-30T08:39:29.467469+00:00.
