devongovett/regexgen
Generate regular expressions that match a set of strings observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3543
- days_rel: n/a
- days_push: 930
- n_releases_24m: 0
Adoption not part of the score
3422 stars · 102 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A JavaScript library and CLI that generates minimal regular expressions matching a given set of strings, using a trie, DFA minimization, and Brzozowski's algebraic method. It supports Unicode/ES2015 regex output and is installable via npm.
Use cases
- generate a regex from a list of example strings
- build compact regexes for emoji sequences
- automatically create regex for keyword matching
- minimize regular expressions covering a string set
- generate regex patterns from sample data via CLI
When to choose
- you have a finite set of strings and want a compact regex matching exactly those
- you want programmatic regex generation in Node.js or a quick CLI one-liner
- you need Unicode-aware regexes including emoji ZWJ sequences
When to avoid
- you need regexes from examples that generalize beyond the given strings
- you need regex generation in a non-JavaScript runtime
- you need full regex features like backreferences or lookarounds
Facets
library · maturity maintenance
parser developer-tools developer-tools programming-languages cli cross-platform regex-generation trie dfa-minimization javascript algorithms nodejs
2 sources
- readme: https://github.com/devongovett/regexgen · fetched 2026-08-28 · 4d41e00b78bf
- registry_npm: https://registry.npmjs.org/regexgen · fetched 2026-08-29 · d4fa7d3065d2
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| devongovett/regexgen | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="devongovett/regexgen")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem