rust-lang/regex
An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs. observed · 2026-08-28
Health v2 · maintenance only
66/100
- Activity 97
- 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: 4283
- days_rel: n/a
- days_push: 23
- n_releases_24m: 0
Adoption not part of the score
4012 stars · 529 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
The standard regular expression crate for Rust, built on finite automata (DFAs/NFAs) to guarantee worst-case linear-time matching. It supports a rich regex syntax including Unicode, but omits look-around and backreferences to preserve that guarantee.
Use cases
- match and extract patterns from text in Rust
- parse log lines or grep-like output with regexes
- validate user input like dates or emails
- search large text corpora without regex denial-of-service risk
- extract named capture groups from strings
When to choose
- you need guaranteed linear-time matching with no catastrophic backtracking
- you want the de facto standard, battle-tested regex library for Rust
- you need full Unicode support in patterns
- you're processing untrusted input with regexes
When to avoid
- you need look-around (lookahead/lookbehind) or backreferences
- you want PCRE-compatible semantics
- you need a regex engine for a language other than Rust
Facets
library · maturity stable
parser search-engine developer-tools programming-languages parsers developer-tools rust cross-platform regex-engine finite-automata linear-time-matching dfa nfa text-search unicode algorithms
10 sources
- readme: https://github.com/rust-lang/regex · fetched 2026-08-28 · 02d05e0a69e0
- homepage: https://docs.rs/regex · fetched 2026-08-29 · f86027bda854
- site_page: https://docs.rs/ · fetched 2026-08-29 · 35213d539031
- site_page: https://docs.rs/crate/regex/latest · fetched 2026-08-29 · 7244a3a5b7e5
- site_page: https://docs.rs/crate/regex/latest/features · fetched 2026-08-29 · 2328374438b2
- site_page: https://docs.rs/about · fetched 2026-08-29 · 29ab7986fbf5
- site_page: https://docs.rs/about/badges · fetched 2026-08-29 · 6588cac258af
- site_page: https://docs.rs/about/builds · fetched 2026-08-29 · 811231ca4680
- site_page: https://docs.rs/about/metadata · fetched 2026-08-29 · 0dcdccb2b2b2
- site_page: https://docs.rs/about/redirections · fetched 2026-08-29 · 1b1efd93105f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| rust-lang/regex | main | 66 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem