grex Regular Expression Generator from Test Cases
grex is a command-line tool and library that automatically generates regular expressions from user-provided test cases. Written in Rust with Python bindings, it produces the most specific regex that matches the given input, supporting Unicode 16.0, character class detection, quan
What it does
grex Regular Expression Generator from Test Cases
grex is a command-line tool and library that automatically generates regular expressions from user-provided test cases. Written in Rust with Python bindings, it produces the most specific regex that matches the given input, supporting Unicode 16.0, character class detection, quantifier notation, and case-insensitive matching.
Installation
Use the upstream install or setup path that matches your environment:
- git clone https://github.com/pemistahl/grex.git
- cargo build
- cargo test
- cargo bench
Requirements and caveats from upstream:
Basic usage or getting-started notes:
-
Input:
-
[INPUT]... One or more test cases separated by blank space
-
-f, --file <FILE> Reads test cases on separate lines from a file
-
Extracted from upstream docs: https://raw.githubusercontent.com/pemistahl/grex/HEAD/README.md
Source
Capabilities
Install
Quality
deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (1,414 chars)