Need help with re2?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

6.1K Stars 902 Forks BSD 3-Clause "New" or "Revised" License 880 Commits 2 Opened issues


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.

Services available


Need anything else?

Contributors list

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

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 (

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.