Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Clone in Desktop Download ZIP
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++ C Python Makefile Perl Shell CMake
Latest commit 7925aaa @junyer junyer Make re2/re2.cc use the mutex, not atomic operations.
This is to confine the use of atomic operations to re2/dfa.cc only, but
also to make RE2::NumberOfCapturingGroups() consistent with its siblings.

Change-Id: I236d4aa62dce6a397d795cd1fed775c51f605076
Reviewed-on: https://code-review.googlesource.com/3712
Reviewed-by: Paul Wankadia <junyer@google.com>

README

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

For documentation about how to install and use RE2,
visit https://github.com/google/re2/.

The short version is:

make
make test
make install
make testinstall

More information can be found on the wiki:
https://github.com/google/re2/wiki

Issue tracker:
https://github.com/google/re2/issues

Mailing list:
https://groups.google.com/group/re2-dev

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++.
An Erlang wrapper is at https://github.com/tuncer/re2/.
An Inferno wrapper is at https://github.com/powerman/inferno-re2/.
A Node.js wrapper is at https://github.com/uhop/node-re2/ and on NPM.
An OCaml wrapper is at https://github.com/janestreet/re2/ and on OPAM.
A Perl wrapper is at https://github.com/dgl/re-engine-RE2/ and on CPAN.
A Python wrapper is at https://github.com/facebook/pyre2/.
A Ruby wrapper is at https://github.com/axic/rre2/.
Something went wrong with that request. Please try again.