Ross ROSS = Recommend OSS · open-source software intelligence for agents

spatie/regex

Some data may be outdated — see provenance labels.

A sane interface for php's built in preg_* functions observed · 2026-09-29

github.com/spatie/regex · homepage · PHP · MIT (permissive) observed · 2026-09-29

Health v2 · maintenance only

48/100

  • Activity 57
  • 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-10-22. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 3717
  • days_rel: n/a
  • days_push: 263
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1122 stars · 49 forks observed · 2026-09-29

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A PHP library providing a clean, object-oriented wrapper around PHP's built-in preg_* regex functions. It eliminates awkward patterns like pass-by-reference parameters and inconsistent false/null error returns.

Use cases

  • match regex patterns in php without preg_* quirks
  • extract capturing groups from strings
  • replace text with regex callbacks
  • get all regex matches in a subject
  • handle no-match cases with defaults

When to choose

  • you use PHP's preg_* functions regularly and want a cleaner API
  • you want exceptions instead of false/null return values
  • you prefer fluent, object-oriented regex results

When to avoid

  • you need maximum performance with zero overhead
  • you only use regex occasionally and raw preg_* is fine
  • you're not working in PHP

Facets

library · maturity stable

parser developer-tools developer-tools programming-languages php regex preg string-processing fluent-api

3 sources

Member repositories

RepositoryRoleHealth v2
spatie/regexmain48

For agents

markdown · JSON · MCP: product_card(name="spatie/regex")

Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem