regress provides Python bindings to the high-performance Rust `regress` crate, offering ECMA regular expression capabilities. The library is actively maintained, with its current version being 2025.10.1, and follows a frequent release cadence, as seen with multiple releases throughout 2024 and 2025. It aims to provide a fast and reliable regular expression engine compliant with the ECMA-262 specification.
pip install regressVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize a `Regex` object, perform a basic search using `find()`, iterate through all matches with `find_iter()`, and utilize flags for pattern matching.
Review the GitHub release notes and `regress` crate documentation for any changes to API methods or behavior, especially if migrating from versions prior to 2024.8.1.
Familiarize yourself with the ECMA-262 regular expression syntax. Test existing patterns thoroughly when migrating from `re` module usage. Consult the `regress` Rust crate documentation for exact behavior.
Ensure your Python environment is supported by available `manylinux` wheels. If installation fails, install a Rust toolchain (e.g., via `rustup`) and try `pip install regress` again to compile from source.
pip install regress
import regress regex_pattern = regress.Regress(r"your_regex_here")
import regress
regex_pattern = regress.Regress(r"your_regex_here")
match_result = regex_pattern.find_first("your_text_here") # Or .full_match(), .find_all()import regress regex_pattern = regress.Regress(r"\d+") # Ensure the pattern is a string, often a raw string (r"")
No dependency data recorded yet.