Skip to content
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.
C++ Python Makefile Perl Shell CMake Other
Branch: master
Clone or download
junyer Partial revert of commit 7a10064.
If CMake doesn't support building libre2.a and together and
installing them together, then it isn't suitable for use in packaging
and so installing re2.pc isn't needed.

Fixes #215.

Change-Id: I83e329f39da97ed6c4184564bd4ac85709800213
Reviewed-by: Paul Wankadia <>
Latest commit 5bd6137 Aug 26, 2019


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

For documentation about how to install and use RE2,

The short version is:

make test
make install
make testinstall

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++.

A C wrapper is at
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 (
A Python wrapper is at and on PyPI (
An R wrapper is at and on CRAN (
A Ruby wrapper is at and on RubyGems (
You can’t perform that action at this time.