Skip to content
Back to skills

Grex Regex Generator From Test Cases

ASecurity

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.

  • 67 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 8, 2026
ai-agentspythonrustgoexpressgitsecurity

Security analysis

A100/100

Scanned June 8, 2026

npx -y skills add agentskillexchange/skills --skill grex-regex-generator-from-test-cases --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Grex Regex Generator From Test Cases?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Grex Regex Generator From Test Cases
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-grex-regex-generator-from-test-cases/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-grex-regex-generator-from-test-cases)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "grex Regular Expression Generator from Test Cases"
slug: "grex-regex-generator-from-test-cases"
description: "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."
github_stars: 8079
verification: "security_reviewed"
source: "https://github.com/pemistahl/grex"
category: "Developer Tools"
framework: "Custom Agents"
tool_ecosystem:
  github_repo: "pemistahl/grex"
  github_stars: 8079
---

# 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:
- [![python build status](https://github.com/pemistahl/grex/actions/workflows/python-build.yml/badge.svg)](https://github.com/pemistahl/grex/actions/workflows/python-build.yml)
- ![supported Python versions](https://img.shields.io/badge/Python-%3E%3D%203.12-blue?logo=Python&logoColor=yellow)
- Specifies the minimum length a repeated substring must have in order to be converted if

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

- Source: https://github.com/pemistahl/grex
- Extracted from upstream docs: https://raw.githubusercontent.com/pemistahl/grex/HEAD/README.md

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/grex-regex-generator-from-test-cases/)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.