-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Install
RE2 should build and run on any modern Unix clone with GCC or Clang.
git clone https://code.googlesource.com/re2
cd re2
make test
make install
make testinstall
(On BSD systems, use gmake
instead of make
.)
Bazel and CMake are also supported. The latter enables generation of Visual Studio and Xcode projects as well as Cygwin, MinGW and MSYS makefiles. Bug reports and/or fixes are welcome!
Your compiler must support C++11. In particular, the DFA execution engine depends on C++11 atomics.
Visual Studio users: You need Visual Studio 2013 or later. Building a DLL is not currently supported.
Cygwin users: You must run CMake from the Cygwin command line, not the Windows command line.
For documentation on how to use RE2, see the comment at the top of re2/re2.h.
Mail re2-dev with problems.
RE2's native language is C++.
A C wrapper is at https://github.com/marcomaggi/cre2/.
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/.