I've been working on rgx, a terminal regex debugger written in Rust using ratatui + crossterm. Just shipped v0.12.3.
What makes it different from other terminal regex tools:
The main thing I haven't seen elsewhere is a step-through debugger (Ctrl+D, PCRE2) — it traces execution with a dual-cursor visualization (pattern cursor + text cursor moving together), backtracking markers, and a heatmap mode that shows which parts of the pattern are matched
most often. Useful when a pattern works but you don't understand why, or when backtracking is making it slow.
Beyond that:
- 3 engines — Rust
regex(default),fancy-regex(lookaround / backrefs), PCRE2. Auto-selects the simplest engine that supports your pattern's features. - Code generation (Ctrl+G) — emits ready-to-paste code for Rust, Python, JS, Go, Java, C#, PHP, Ruby
- Generate regex from examples (Ctrl+X) — grex overlay
- Live filter mode —
rgx filterstreams stdin/file through a regex TUI;--json <PATH>extracts a specific JSONL field to match against - Batch/pipeline mode —
echo "log" | rgx -p '\d+'with grep-like exit codes - Test suite mode — TOML-based CI assertions (
rgx --test) - VS Code, Neovim, Zed, tmux integrations
Install:
cargo install rgx-cli
brew install brevity1swos/tap/rgx