Regex you can
actually read.
A declarative regex query builder for your terminal. Write patterns like you think about them — composable, left-to-right, zero dependencies.
Features
Built for developers who hate debugging regex
Every design decision optimizes for clarity and composability.
Blazingly Fast
Single Python file, zero dependencies. Instant regex generation with no startup cost.
Composable
Operations chain left to right, just like regex reads. Build complex patterns from simple parts.
Deterministic
Same input always produces the same regex. No AI, no guessing, no magic.
Zero Dependencies
Only Python 3.10+ standard library. Nothing to install, nothing to break.
Test Mode
Validate patterns against sample strings with --test. See matches and misses instantly.
Unix-Friendly
Outputs to stdout. Pipe to grep, sed, awk, or your clipboard. Fits any workflow.
Examples
See it in action
From simple validations to complex log parsing.
Reference
Full operations table
Every operation maps to a clear regex concept.
| Operation | Output | Description |
|---|---|---|
| start | ^ | Start of string |
| end | $ | End of string |
| boundary | \b | Word boundary |
Installation
Up and running in seconds
Single file, zero dependencies. Just Python 3.10+.
1. Clone the repo
2. Make it executable
3. Add to PATH
Open Source
Stop decoding regex.
Start writing it.
RegexQ is free, open source, and ready for your workflow. Star it, fork it, or just start using it.