Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.

Metadata

Release files for cjworkbench-re2 0.0.7a0

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

Source distribution (sdist)

Source distribution for cjworkbench-re2 0.0.7a0
File Size Uploaded
cjworkbench-re2-0.0.7a0.tar.gz 9.0 kB Details

Release files / cjworkbench-re2-0.0.7a0.tar.gz

Download URL cjworkbench-re2-0.0.7a0.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
557573fb0291b43196d7f8d7a66370e37af3e1b5b500905617087ea6180c9dc4
BLAKE2b-256 checksum
How to use checksums
55000f815a4fa83639f2fdabacac7179a47833eaadcceb488f434c2c24170175
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

Release history Release notifications | RSS feed

This release

0.0.7a0 This release

1 release file

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