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 and pybind11 to be installed on your system.
On Debian, for example, install the libre2-dev and pybind11-dev packages.
* 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
google-re2-0.0.3.tar.gz
(8.3 kB
view details)
File details
Details for the file google-re2-0.0.3.tar.gz
.
File metadata
- Download URL: google-re2-0.0.3.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10f699e9c2407a9817a5dfc892a5f6abe65efab04c132fd3f5850af0839e1adf |
|
MD5 | 1afd6e09db15418afc38df542899b3fc |
|
BLAKE2b-256 | f7bec7afd76786b21db8c5843aecae28812c9580d490b6aa82ae23238e5ba844 |