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++ 95.5%
  • Python 1.5%
  • Makefile 1%
  • CMake 0.7%
  • Starlark 0.5%
  • Other 0.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2022-11-14 18:20:07 +01:00
.github Add GCC 12 to the build matrix. 2022-05-10 11:02:12 +00:00
benchlog benchlog: Add gnuplot support 2015-07-17 02:42:53 +00:00
doc Remove xkcd.png, which is disused. 2022-03-22 20:41:55 +00:00
lib/git Cleanup: Remove hg codereview extension. 2015-04-09 15:49:53 +00:00
re2 Fix casts 2022-06-09 12:36:09 +03:00
util Fall back to std::shared_mutex, not std::mutex. 2022-03-15 17:56:20 +00:00
.gitignore re2: exclude benchlog results in .gitignore 2015-07-10 09:07:22 +00:00
AUTHORS re2: make tables const 2014-01-09 19:49:05 -05:00
BUILD Simplify OS selection in Bazel by using @platforms. 2022-02-24 15:42:37 +00:00
CMakeLists.txt not install re2 2022-11-14 18:20:07 +01:00
CONTRIBUTING.md Close all GitHub pull requests automatically. 2022-01-27 19:39:41 +00:00
CONTRIBUTORS Remove comparisons of this with NULL. 2014-06-26 11:18:57 -04:00
libre2.symbols Fix symbol visibility and add test coverage. 2020-10-26 10:17:05 +00:00
libre2.symbols.darwin Fix symbol visibility and add test coverage. 2020-10-26 10:17:05 +00:00
LICENSE initial release 2010-03-02 17:17:51 -08:00
Makefile Optimise the layout of the RE2 class. 2022-06-01 10:25:56 +00:00
re2.pc Don't specify the -std flag in Makefile or re2.pc. 2022-01-18 04:31:53 +00:00
re2Config.cmake.in Fix CMake packaging for installation. 2022-01-06 11:35:33 +00:00
README Improve the D wrapper details. 2021-08-09 16:49:40 +00:00
runtests Kludge around System Integrity Protection on Darwin. 2018-03-04 13:44:19 +00:00
SECURITY.md Add a SECURITY.md file. 2021-07-09 00:12:06 +00:00
testinstall.cc Fix symbol visibility and add test coverage. 2020-10-26 10:17:05 +00:00
ucs2.diff add ucs2.diff, showing old UCS-2 support 2012-02-07 13:13:06 -05:00
WORKSPACE Switch back to native C++ rules. 2021-10-18 14:46:37 +00:00

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

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

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

The Python wrapper is at https://github.com/google/re2/tree/abseil/python
and on PyPI (https://pypi.org/project/google-re2/).

A C wrapper is at https://github.com/marcomaggi/cre2/.
A D wrapper is at https://github.com/ShigekiKarita/re2d/ and on DUB (code.dlang.org).
An Erlang wrapper is at https://github.com/dukesoferl/re2/ and on Hex (hex.pm).
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 (npmjs.com).
An OCaml wrapper is at https://github.com/janestreet/re2/ and on OPAM (opam.ocaml.org).
A Perl wrapper is at https://github.com/dgl/re-engine-RE2/ and on CPAN (cpan.org).
An R wrapper is at https://github.com/girishji/re2/ and on CRAN (cran.r-project.org).
A Ruby wrapper is at https://github.com/mudge/re2/ and on RubyGems (rubygems.org).
A WebAssembly wrapper is at https://github.com/google/re2-wasm/ and on NPM (npmjs.com).