Registry / utility / re2
library2025-11-05vcpkgunverified

RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. It is a C++ library.

vcpkg install re2
INSTALL
IMPORT
SIG · RE2
R
re2
utilitycppv2025-11-05
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

re2/re2.h
#include <re2/re2.h>

Match a digit string using RE2

#include <re2/re2.h> #include <iostream> int main() { RE2 re("\\d+"); std::string s = "123"; if (RE2::FullMatch(s, re)) { std::cout << "Match!" << std::endl; } return 0; }
Debug
Known issues
gotchaDoes not support backreferences or lookahead/lookbehind
fix
Use PCRE2 or Boost.Regex if those features are needed
affects: *
Upgrade
Version history
2025-11-05latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources

No resource links recorded.

re2 — pip install re2 · libregistry