regex-opt
« Back to VersTracker
Description:
Perl-compatible regular expression optimizer
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: regex optimization pcre developer-tools command-line
Install: brew install regex-opt
About:
RegexOpt is a command-line tool that compiles Perl-compatible regular expressions into optimized finite state automata. It analyzes patterns to remove redundancy and minimize states, resulting in faster execution. This optimization is valuable for performance-critical applications where regex speed is a bottleneck.
Key Features:
  • Optimizes PCRE-compatible regular expressions
  • Outputs minimized finite state automata
  • Command-line interface for easy integration
  • Helps identify inefficient regex patterns
Use Cases:
  • Optimizing regex patterns for high-performance applications
  • Analyzing and debugging complex regular expressions
  • Preprocessing regex for embedded systems or performance-critical code
Alternatives:
  • re2 – Google's RE2 library guarantees linear time execution but uses a different syntax than PCRE
  • regex-golf – Web-based tool for finding minimal regex patterns, focused on puzzle solving rather than optimization
Version History
Detected Version Rev Change Commit
Sep 15, 2025 12:57pm 0 VERSION_BUMP 51509a2e
Sep 14, 2024 2:12am 0 VERSION_BUMP 5c09c4ba