google-re2 1.1.20250805


pip install google-re2

  Latest version

Released: Aug 05, 2025

Project Links

Meta
Author: The RE2 Authors
Requires Python: ~=3.9

Classifiers

Development Status
  • 5 - Production/Stable

Intended Audience
  • Developers

License
  • OSI Approved :: BSD License

Programming Language
  • C++
  • Python :: 3.9
A drop-in replacement for the re module.

It uses RE2 under the hood, of course, so various PCRE features
(e.g. backreferences, look-around assertions) are not supported.
See https://github.com/google/re2/wiki/Syntax for the canonical
reference, but known syntactic "gotchas" relative to Python are:

* PCRE supports \Z and \z; RE2 supports \z; Python supports \z,
but calls it \Z. You must rewrite \Z to \z in pattern strings.

Known differences between this module's API and the re module's API:

* The error class does not provide any error information as attributes.
* The Options class replaces the re module's flags with RE2's options as
gettable/settable properties. Please see re2.h for their documentation.
* The pattern string and the input string do not have to be the same type.
Any str will be encoded to UTF-8.
* The pattern string cannot be str if the options specify Latin-1 encoding.

Known issues with regard to building the C++ extension:

* Building requires RE2 to be installed on your system.
On Debian, for example, install the libre2-dev package.
* Building requires pybind11 to be installed on your system OR venv.
On Debian, for example, install the pybind11-dev package.
For a venv, install the pybind11 package from PyPI.
* Building on macOS is known to work, but has been known to fail.
For example, the system Python may not know which compiler flags
to set when building bindings for software installed by Homebrew;
see https://docs.brew.sh/Homebrew-and-Python#brewed-python-modules.
* Building on Windows has not been tested yet and will probably fail.

Wheel compatibility matrix

Platform CPython 3.9 CPython 3.10 CPython 3.11 CPython 3.12 CPython 3.13
macosx_13_0_arm64
macosx_13_0_x86_64
macosx_14_0_arm64
macosx_14_0_x86_64
macosx_15_0_arm64
macosx_15_0_x86_64
manylinux_2_26_aarch64
manylinux_2_27_x86_64
manylinux_2_28_aarch64
manylinux_2_28_x86_64
win32
win_amd64
win_arm64

Files in release

google_re2-1.1.20250805-1-cp310-cp310-macosx_13_0_arm64.whl (471.7KiB)
google_re2-1.1.20250805-1-cp310-cp310-macosx_13_0_x86_64.whl (502.1KiB)
google_re2-1.1.20250805-1-cp310-cp310-macosx_14_0_arm64.whl (472.7KiB)
google_re2-1.1.20250805-1-cp310-cp310-macosx_14_0_x86_64.whl (503.5KiB)
google_re2-1.1.20250805-1-cp310-cp310-macosx_15_0_arm64.whl (473.3KiB)
google_re2-1.1.20250805-1-cp310-cp310-macosx_15_0_x86_64.whl (499.1KiB)
google_re2-1.1.20250805-1-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (559.3KiB)
google_re2-1.1.20250805-1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (575.2KiB)
google_re2-1.1.20250805-1-cp310-cp310-win32.whl (422.7KiB)
google_re2-1.1.20250805-1-cp310-cp310-win_amd64.whl (478.7KiB)
google_re2-1.1.20250805-1-cp311-cp311-macosx_13_0_arm64.whl (472.4KiB)
google_re2-1.1.20250805-1-cp311-cp311-macosx_13_0_x86_64.whl (503.4KiB)
google_re2-1.1.20250805-1-cp311-cp311-macosx_14_0_arm64.whl (474.0KiB)
google_re2-1.1.20250805-1-cp311-cp311-macosx_14_0_x86_64.whl (505.0KiB)
google_re2-1.1.20250805-1-cp311-cp311-macosx_15_0_arm64.whl (474.4KiB)
google_re2-1.1.20250805-1-cp311-cp311-macosx_15_0_x86_64.whl (500.2KiB)
google_re2-1.1.20250805-1-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (560.2KiB)
google_re2-1.1.20250805-1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (576.9KiB)
google_re2-1.1.20250805-1-cp311-cp311-win32.whl (423.9KiB)
google_re2-1.1.20250805-1-cp311-cp311-win_amd64.whl (479.4KiB)
google_re2-1.1.20250805-1-cp311-cp311-win_arm64.whl (627.1KiB)
google_re2-1.1.20250805-1-cp312-cp312-macosx_13_0_arm64.whl (474.2KiB)
google_re2-1.1.20250805-1-cp312-cp312-macosx_13_0_x86_64.whl (506.6KiB)
google_re2-1.1.20250805-1-cp312-cp312-macosx_14_0_arm64.whl (475.5KiB)
google_re2-1.1.20250805-1-cp312-cp312-macosx_14_0_x86_64.whl (508.0KiB)
google_re2-1.1.20250805-1-cp312-cp312-macosx_15_0_arm64.whl (475.7KiB)
google_re2-1.1.20250805-1-cp312-cp312-macosx_15_0_x86_64.whl (502.4KiB)
google_re2-1.1.20250805-1-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (559.0KiB)
google_re2-1.1.20250805-1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (577.5KiB)
google_re2-1.1.20250805-1-cp312-cp312-win32.whl (423.6KiB)
google_re2-1.1.20250805-1-cp312-cp312-win_amd64.whl (480.1KiB)
google_re2-1.1.20250805-1-cp312-cp312-win_arm64.whl (627.6KiB)
google_re2-1.1.20250805-1-cp313-cp313-macosx_13_0_arm64.whl (474.2KiB)
google_re2-1.1.20250805-1-cp313-cp313-macosx_13_0_x86_64.whl (506.7KiB)
google_re2-1.1.20250805-1-cp313-cp313-macosx_14_0_arm64.whl (475.6KiB)
google_re2-1.1.20250805-1-cp313-cp313-macosx_14_0_x86_64.whl (508.0KiB)
google_re2-1.1.20250805-1-cp313-cp313-macosx_15_0_arm64.whl (475.8KiB)
google_re2-1.1.20250805-1-cp313-cp313-macosx_15_0_x86_64.whl (502.4KiB)
google_re2-1.1.20250805-1-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (559.0KiB)
google_re2-1.1.20250805-1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (577.5KiB)
google_re2-1.1.20250805-1-cp313-cp313-win32.whl (423.7KiB)
google_re2-1.1.20250805-1-cp313-cp313-win_amd64.whl (480.2KiB)
google_re2-1.1.20250805-1-cp313-cp313-win_arm64.whl (627.5KiB)
google_re2-1.1.20250805-1-cp39-cp39-macosx_13_0_arm64.whl (471.8KiB)
google_re2-1.1.20250805-1-cp39-cp39-macosx_13_0_x86_64.whl (502.2KiB)
google_re2-1.1.20250805-1-cp39-cp39-macosx_14_0_arm64.whl (472.7KiB)
google_re2-1.1.20250805-1-cp39-cp39-macosx_14_0_x86_64.whl (503.6KiB)
google_re2-1.1.20250805-1-cp39-cp39-macosx_15_0_arm64.whl (473.4KiB)
google_re2-1.1.20250805-1-cp39-cp39-macosx_15_0_x86_64.whl (499.1KiB)
google_re2-1.1.20250805-1-cp39-cp39-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (559.6KiB)
google_re2-1.1.20250805-1-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (575.6KiB)
google_re2-1.1.20250805-1-cp39-cp39-win32.whl (423.4KiB)
google_re2-1.1.20250805-1-cp39-cp39-win_amd64.whl (485.6KiB)
google_re2-1.1.20250805.tar.gz (11.4KiB)
No dependencies