ctre
« Back to VersTracker
Description:
Compile-time PCRE-compatible regular expression matcher for C++
Type: Formula  |  Latest Version: 3.10.0@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c++ regex compile-time header-only performance
Install: brew install ctre
About:
CTRE (Compile-Time Regular Expressions) is a header-only C++20 library that enables pattern matching using PCRE-like syntax directly within the code. It performs all regex parsing and optimization during compilation, eliminating runtime overhead and catching syntax errors early. This results in significantly faster execution compared to traditional regex libraries.
Key Features:
  • Compile-time parsing and optimization
  • Zero runtime dependencies
  • PCRE-compatible syntax
  • Exception-safe by design
Use Cases:
  • High-performance string parsing in C++ applications
  • Embedded systems requiring minimal runtime overhead
  • Protocol parsing and validation
Alternatives:
  • std::regex – Standard library solution but slower runtime performance
  • Boost.Regex – Mature alternative with runtime overhead but broader feature set
Version History
Detected Version Rev Change Commit
Dec 16, 2025 11:11am 0 VERSION_BUMP bd0b880a