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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Close
Hashes for google_re2-0.1.20210601-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e683a715a3390dfa0a53bcf93c2d1122ef277672a2191d429cfb023f49bce8ff |
|
MD5 | 450315e10bbb164875792a2b6c8c0fcb |
|
BLAKE2b-256 | 01b0e9c2da4cefc46ea8d9d22a588583973ce69c8a230a058a02fc43e375e81a |
Close
Hashes for google_re2-0.1.20210601-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9383cf421af4ffae595191c6f8c6d8fab61b453c148884b55b3c30f628557bf1 |
|
MD5 | 94db6aa1b2481b8e15727f59dcdb4f6d |
|
BLAKE2b-256 | 9f5a7067b29fe6fd02bbf2ac6cc5f0c57182bd4dd2c0c1248cd9e054d22c8fcf |
Close
Hashes for google_re2-0.1.20210601-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0e01bdfbbce47a2e247d8220fc53c4f949861ba4aa63ebea79d9d0d27740621 |
|
MD5 | af782578dcb7a2ec0fa8acc70285c3b2 |
|
BLAKE2b-256 | e235130fc2fc37ba1a53ef709aa8f697af313c959ee5113d89cd4bcabdd6b998 |
Close
Hashes for google_re2-0.1.20210601-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef2441937586bbd8b4da0db6367d5847fec6db3cd08f51d1617088537ef3a80d |
|
MD5 | d950e788965947f49ce43a933abb0a48 |
|
BLAKE2b-256 | be72ec649f13d372e573cb19732389d21eed6aa9b81c9b7e5c5ade782a18ead6 |