grex
« Back to VersTracker
Description:
Command-line tool for generating regular expressions
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: regex cli developer-tools rust productivity
Install: brew install grex
About:
Grex is a command-line utility designed to generate regular expressions from user-provided test cases. It automates the complex task of writing regex patterns by analyzing input strings and producing the most concise expression that matches them. This tool significantly speeds up development workflows for developers who need to create or understand regex patterns quickly.
Key Features:
  • Generates regex from example strings
  • Supports Unicode and escape sequences
  • Produces optimized and readable patterns
  • Can be used as a CLI tool or Rust library
Use Cases:
  • Quickly creating regex patterns for data validation without manual crafting
  • Reverse-engineering existing regex patterns from sample inputs
  • Learning how regular expressions work by seeing them generated from examples
Alternatives:
  • Regex101 – Regex101 is a web-based tester/debugger, whereas Grex is a CLI tool that generates patterns from scratch.
  • Regexper – Regexper visualizes existing regex patterns, while Grex creates the pattern code based on input data.
Version History
Detected Version Rev Change Commit
Sep 12, 2025 3:17pm 0 VERSION_BUMP 4c949972
Sep 13, 2024 12:15pm 0 VERSION_BUMP 442af4d1