Skip to main content

RE2 Python bindings

Project description

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.


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

File details

Details for the file built_google_re2-0.0.7.20210224100510-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for built_google_re2-0.0.7.20210224100510-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5ef0bb28b0e2a0922a406dd146b0f6aae2654d0ec2d96876a8398074121fd9f3
MD5 a31ca9473f3528cd788c12efe6d0b158
BLAKE2b-256 6c365c00f1a7bc8ced209a9a0300b2d9c2b5fa78ba0e6d1fef047d73908854bc

See more details on using hashes here.

File details

Details for the file built_google_re2-0.0.7.20210224100510-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for built_google_re2-0.0.7.20210224100510-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a41941e4c815b16cf5487d6de69a63347acf2dfc31bbd0b06e7d3f09dc3fc36b
MD5 43dc7d773160a6aed6a9fbdc373a2e23
BLAKE2b-256 c40257681c262c1060b1ccd7ae49ade78f86f0f45ac9b647d0319b3898065cdf

See more details on using hashes here.

File details

Details for the file built_google_re2-0.0.7.20210224100510-cp37-cp37m-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for built_google_re2-0.0.7.20210224100510-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f5f4964c215e37a3fe4fd9ec1354f908ee99b09bf299895ec2e934e1b49819c5
MD5 03609fed77970a0f77b119129050b212
BLAKE2b-256 52b182d4da73ee27a324ba099131b7430cc00104c07ab1c72c3029670b4ddb0a

See more details on using hashes here.

File details

Details for the file built_google_re2-0.0.7.20210224100510-cp36-cp36m-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for built_google_re2-0.0.7.20210224100510-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 342b5e2f3561c7695c0ab76e7adc4cd72168445a94b5a1b841870d2a943323e4
MD5 315383c7985fb38475a3c2af1d350ec7
BLAKE2b-256 410c42dd7404270fc38997afb00ed8a956836d8a4862081f5e2bce2d5d17d78c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page