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 Text (unicode in Python 2, str in Python 3) will be encoded to UTF-8.
* The pattern string cannot be Text 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.1.20210401

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.1.20210401
File Size Uploaded
google-re2-0.1.20210401.tar.gz 9.1 kB Details

Built distributions (wheels)

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

Total release size: 1.3 MB

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

Download URL google-re2-0.1.20210401.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9565650d9b89b17b7bf5edd75bf749384d3f0201bcda68ca1783b0e9716efd66
BLAKE2b-256 checksum
How to use checksums
156106982c620d243f8742a204dc733667c4e29ce359f55ce7cec0b17fd56a7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Release files / google_re2-0.1.20210401-cp39-cp39-manylinux2014_x86_64.whl

Download URL google_re2-0.1.20210401-cp39-cp39-manylinux2014_x86_64.whl
Size 333.0 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
56bb93e7c6974cf5c3f8777111c357784c2d9af5c5e35f93bff90e95dc6a2b8e
BLAKE2b-256 checksum
How to use checksums
1df2346bead1de2eb821dd8427f1080df0ac8eccbd0db29c074d14cc6d42033c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Release files / google_re2-0.1.20210401-cp38-cp38-manylinux2014_x86_64.whl

Download URL google_re2-0.1.20210401-cp38-cp38-manylinux2014_x86_64.whl
Size 332.8 kB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
00c7dd07316247312136d3e00f63c1ee7a07d29793cd725281bf07139ef7a042
BLAKE2b-256 checksum
How to use checksums
6a5184b41bbe6d6fa16cae63f6409c82e48715c456a4e10ccff51134aee2a8d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Release files / google_re2-0.1.20210401-cp37-cp37m-manylinux2014_x86_64.whl

Download URL google_re2-0.1.20210401-cp37-cp37m-manylinux2014_x86_64.whl
Size 335.7 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
b62192371b94eed857a515298496bc49298b435ebcb06fc84c0516a07ae84535
BLAKE2b-256 checksum
How to use checksums
bd53695df0e9ecd1d8e5bad642af31952829518f9e06e0acdb3e71f53f75444f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Release files / google_re2-0.1.20210401-cp36-cp36m-manylinux2014_x86_64.whl

Download URL google_re2-0.1.20210401-cp36-cp36m-manylinux2014_x86_64.whl
Size 335.5 kB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
0a1b0cd6652923eec6217d9b680de068cfa498b9799ba797e469168d92feb7ff
BLAKE2b-256 checksum
How to use checksums
f694111a1d7af8b9a83adca246976f33697218272a2963128547c8ad186303c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
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