# cdoco/common-regex

:jack_o_lantern: 常用正则表达式 - 收集一些在平时项目开发中经常用到的正则表达式。

Repository: https://github.com/cdoco/common-regex
Canonical: https://ross.abutalabs.com/products/common-regex
License: MIT
License Family: permissive
Topics: regex, common-regex, regexp, regex-validator
Last push: 2019-03-04T04:15:21+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3449, "days_push": 2739, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3133, forks 407 (observed 2026-08-28T04:07:45.582036+00:00)

## What it is
A curated collection of commonly used regular expressions, documented in Chinese, covering email, phone numbers, domains, IPs, account names, character classes, and numeric patterns. It serves as a reference/cheatsheet rather than an executable library.

## Use cases
- find a regex to validate email addresses
- regex for validating Chinese mobile phone numbers
- regular expression to match IPv4 addresses
- regex to validate usernames with letters, digits and underscores
- pattern for matching Chinese characters
- regex for integers and floating point numbers
- copy-paste regex for domain name validation

## When to choose
- you need quick, ready-made regex patterns for common validation tasks
- you want a browsable reference of regex examples with test cases
- you work with Chinese text and need patterns for Chinese characters or phone formats

## When to avoid
- you need a regex library with programmatic APIs or runtime validation
- you need RFC-strict validation (e.g., fully compliant email parsing)
- you need actively maintained patterns or multi-language documentation

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: parser, developer-tools
- domain: developer-tools, web-development, parsers
- platform: cross-platform
- tags: regex, cheatsheet, regexp, validation-patterns, chinese-documentation

## Member repositories
- cdoco/common-regex (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:45.582036+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-30T07:26:07.409707+00:00, confidence not recorded.
  - readme: https://github.com/cdoco/common-regex (fetched 2026-08-28T04:07:45.582036+00:00, sha e82a9b1f583c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
