pemistahl/grex
A command-line tool and Rust library with Python bindings for generating regular expressions from user-provided test cases observed · 2026-08-28
Health v2 · maintenance only
59/100
- Activity 69
- Release rhythm 24
- Longevity 100
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: 2524
- days_rel: 292
- days_push: 187
- n_releases_24m: 1
Adoption not part of the score
8173 stars · 197 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
grex is a command-line tool and Rust library (with Python bindings) that automatically generates regular expressions from user-provided test case strings. It simplifies writing regex patterns by inferring them from examples.
Use cases
- generate a regex from example strings
- infer regular expression from test cases
- simplify writing regex patterns
- convert sample strings into a regex
- learn regex by examples
- automate regex creation from input samples
When to choose
- you have example strings and need a matching regex quickly
- you want a CLI or Rust/Python library for regex synthesis
- you struggle with writing complex regex patterns manually
When to avoid
- you need a regex debugger or visual regex tester
- you need regexes optimized for specific regex engines' syntax beyond common features
- you need to extract regexes from arbitrary text without examples
Facets
cli-tool · maturity active
parser developer-tools cli developer-tools parsers windows rust python cli cross-platform regex-generation regular-expressions rust-library python-bindings test-cases command-line linux macos
3 sources
- readme: https://github.com/pemistahl/grex · fetched 2026-08-28 · ba39d35eba2a
- homepage: https://pemistahl.github.io/grex-js/ · fetched 2026-08-29 · 93c9f9cd00c4
- registry_crates: https://crates.io/api/v1/crates/grex · fetched 2026-08-29 · 53eeaa8268eb
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pemistahl/grex | main | 59 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem