Description:
Alternative to backtracking PCRE-style regular expression engines
|
|
Type: Formula
|
Latest Version: 20251105@1
|
Tracked Since: Dec 28, 2025
|
|
Links:
Homepage |
@google |
formulae.brew.sh
|
|
Category: Developer tools
|
|
Tags:
regex
regular-expressions
c++
google
security
|
|
Install:
brew install re2
|
About:
RE2 is a fast, safe, linear-time regular expression engine developed by Google. Unlike backtracking engines, it guarantees predictable performance and is immune to catastrophic backtracking vulnerabilities. This makes it ideal for applications requiring high-throughput and secure pattern matching.
|
Key Features:
- Guaranteed linear time execution
- Memory safe and thread-safe
- Supports Perl-like syntax
- Minimal dependencies
|
Use Cases:
- High-performance log processing and parsing
- Security-sensitive input validation
- Network traffic analysis
|
Alternatives:
-
PCRE
– PCRE supports more features but lacks linear-time guarantees and is vulnerable to ReDoS.
-
Oniguruma
– Oniguruma offers advanced features but is more complex and heavier than RE2.
|
| Detected |
Version |
Rev |
Change |
Commit |
| Jan 11, 2026 10:54am |
20251105 |
1 |
REVISION_ONLY |
e697aa72 |
| Sep 10, 2025 7:16pm |
20250812 |
1 |
VERSION_BUMP |
65f5eb60 |
| Jul 2, 2024 10:35pm |
20240702 |
0 |
VERSION_BUMP |
ed5b5ba6 |
| Jan 31, 2024 8:32pm |
20240201 |
0 |
VERSION_BUMP |
c644478a |
| Aug 31, 2023 1:14pm |
20230901 |
0 |
VERSION_BUMP |
efcc8ce7 |
| Aug 30, 2023 8:55pm |
20230801 |
1 |
VERSION_BUMP |
ae62e48c |
| Mar 2, 2023 5:11pm |
20230301 |
0 |
VERSION_BUMP |
6e0afe8e |
| Mar 2, 2023 5:11pm |
20230301 |
0 |
VERSION_BUMP |
d8339a40 |
| Feb 1, 2023 11:47pm |
20230201 |
0 |
VERSION_BUMP |
cbc5f04d |
| Feb 1, 2023 11:47pm |
20230201 |
0 |
VERSION_BUMP |
9fcd28ea |
| Jan 9, 2023 5:04am |
20221201 |
0 |
VERSION_BUMP |
af91efea |
| Jan 9, 2023 5:04am |
20221201 |
0 |
VERSION_BUMP |
3716a25d |
| Dec 27, 2022 2:12am |
20221201 |
0 |
VERSION_BUMP |
74f49d9b |
| Dec 27, 2022 2:12am |
20221201 |
0 |
VERSION_BUMP |
961ab973 |
|