# slevithan/xregexp

Extended JavaScript regular expressions

Repository: https://github.com/slevithan/xregexp
Canonical: https://ross.abutalabs.com/products/xregexp
Homepage: http://xregexp.com/
Language: JavaScript
License: MIT
License Family: permissive
Topics: regex, regular-expression, regexp
Last push: 2026-03-10T17:15:25+00:00

## Health v2 (maintenance only)
Score: 55/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 71, release rhythm 8, longevity 100
- inputs: {"age_days": 5304, "days_push": 176, "days_rel": 558, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3325, forks 273 (observed 2026-08-28T04:07:56.408667+00:00)

## What it is
XRegExp is a JavaScript library providing augmented, extensible regular expressions with modern syntax and flags beyond native browser support, plus utility methods for matching and replacing. It compiles to native RegExp objects and helps smooth over cross-browser regex inconsistencies, though many features are now part of modern JS standards.

## Use cases
- use named capture groups in older browsers
- write free-spacing commented regexes in javascript
- extend unicode property matching to legacy browsers
- parse strings with regexes consistently across browsers
- find matches within matches with sticky matching

## When to choose
- you must support legacy browsers like IE9+ lacking modern regex features
- you want regex utility helpers like named backreference replacement and sticky iteration

## When to avoid
- you target only modern JavaScript engines with native named capture and unicode properties
- you want the latest advanced regex features - consider Regex+, the successor

## Facets
- artifact type: library
- maturity: maintenance
- function: parser, developer-tools
- domain: developer-tools, web-development, parsers
- platform: browser, cross-platform
- tags: regex, regular-expressions, javascript, unicode, text-parsing, nodejs

## Member repositories
- slevithan/xregexp (main) score 55

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:56.408667+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:41:47.692092+00:00, confidence not recorded.
  - readme: https://github.com/slevithan/xregexp (fetched 2026-08-28T04:07:56.408667+00:00, sha 13f80faaac86)
  - homepage: http://xregexp.com/ (fetched 2026-08-29T09:34:57.443839+00:00, sha 00eab4397a11)
  - registry_npm: https://registry.npmjs.org/xregexp (fetched 2026-08-29T09:34:57.453241+00:00, sha a3880d5ba5c7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
