tre
« Back to VersTracker
Description:
Lightweight, POSIX-compliant regular expression (regex) library
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: regex library posix embedded text-processing c
Install: brew install tre
About:
Tre is a lightweight, POSIX-compliant regular expression library designed for embedded systems and applications requiring minimal footprint. It provides robust pattern matching capabilities while maintaining compatibility with standard regex syntax. Its main value proposition is delivering full-featured regex support in constrained environments where larger libraries like PCRE would be impractical.
Key Features:
  • POSIX-compliant regular expression engine
  • Minimal memory footprint for embedded use
  • Wide character (Unicode) support
  • Fuzzy string matching capabilities
  • Portable across multiple platforms
Use Cases:
  • Embedded systems development requiring regex functionality
  • Building lightweight text processing tools
  • Applications needing POSIX-standard pattern matching
  • Projects with strict memory constraints
Alternatives:
  • PCRE2 – More feature-rich but significantly larger memory footprint
  • RE2 – Google's fast engine but focuses on safety guarantees over POSIX compliance
  • GNU regex – Standard GNU library but less portable and heavier
Version History
Detected Version Rev Change Commit
Sep 11, 2025 1:59am 0 VERSION_BUMP 71416a4c