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.

This is the source code repository for RE2, a regular expression library.

For documentation about how to install and use RE2, visit

The short version is:

make make test make install make testinstall

Building RE2 requires Abseil (abseil/abseil-cpp) to be installed on your system. Building the testing for RE2 requires GoogleTest (google/googletest) and Benchmark (google/benchmark) to be installed as well.

There is a fair amount of documentation (including code snippets) in the re2.h header file.

More information can be found on the wiki:

Issue tracker:

Mailing list:

Unless otherwise noted, the RE2 source files are distributed under the BSD-style license found in the LICENSE file.

RE2's native language is C++.

The Python wrapper is at and on PyPI (

A C wrapper is at A D wrapper is at and on DUB ( An Erlang wrapper is at and on Hex ( An Inferno wrapper is at A Node.js wrapper is at and on NPM ( An OCaml wrapper is at and on OPAM ( A Perl wrapper is at and on CPAN ( An R wrapper is at and on CRAN ( A Ruby wrapper is at and on RubyGems ( A WebAssembly wrapper is at and on NPM (

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
C Plus Plus