Skip to main content
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.

Known differences between this 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 has not been tested yet and will possibly fail.
* Building on Windows has not been tested yet and will probably fail.


Metadata

Release files for google-re2 0.2.20210601

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for google-re2 0.2.20210601
File Size Uploaded
google-re2-0.2.20210601.tar.gz 8.7 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for google-re2 0.2.20210601
File
google_re2-0.2.20210601-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details
google_re2-0.2.20210601-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details
google_re2-0.2.20210601-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 Details
google_re2-0.2.20210601-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.17+ x86-64 Details

Total release size: 1.4 MB

Release files / google-re2-0.2.20210601.tar.gz

Download URL google-re2-0.2.20210601.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
69c0df6e8c3c87d059595921f78968c24533d10e62d34e133d1ebe7c3809ea51
BLAKE2b-256 checksum
How to use checksums
5ab7c9f058d5183801323fcce9b654c3344e60be0f3b118666ef7012d8bfa4df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

Release files / google_re2-0.2.20210601-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL google_re2-0.2.20210601-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 334.3 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
55042e6460fbd471b7422ea17cbefe635e368e0bd9f1094ebb330294a51058ef
BLAKE2b-256 checksum
How to use checksums
63da8089bd6eb9992c9321137854ebd2b21800d8b7f1757f22a7176072288ea8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

Release files / google_re2-0.2.20210601-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL google_re2-0.2.20210601-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 334.3 kB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
44fc2a6d009234a6d1aec78735352dfb4bc3ab1eeb210680b55e2b190cb1202e
BLAKE2b-256 checksum
How to use checksums
f5b4f3bbbbf5bdae4b18743b636057183fb61f2855a993cd63c5e1194dd16c94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

Release files / google_re2-0.2.20210601-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL google_re2-0.2.20210601-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 336.6 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
1fa91f3fe73cea9887c4d6a450c98a87c74142bb56de3ae0bc6c098e0d221687
BLAKE2b-256 checksum
How to use checksums
c809bb8d5de72df08c73eda773f78069a4709c5b0acf7d5d55f7b691ac8cdc8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

Release files / google_re2-0.2.20210601-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL google_re2-0.2.20210601-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 336.5 kB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
4a50435384c4e7f4f6d177be84aa238ce2d7fb8da76586f76933761dc2c90d96
BLAKE2b-256 checksum
How to use checksums
ef6abe3964360bd36cf4d006e69c67ffe3ba8ffca6b8fcfb877a888cdff16f07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page