Skip to main content

pyregex(p)

What is it

Pyregex(p) is a backtracking Regex Engine complete with all major regular-expressions' features.

It is composed of a Lexer, a Parser (a TDRD parser) and finally the Engine.

Features implemented includes:

Feature Syntax
match start ^...
match end ...$
escaping \
grouping (...)
named group (?<name>...)
non-capturing group (?:...)
alternative a|b
wildcard .
space \s
quantifiers ? * +
curly brace quantification {exact} {min,max} {,max} {min,}
range element [^a-zA-Z059]

Play with the engine:

from pyregexp.engine import RegexEngine

reng = RegexEngine()

reng.match('^my_(beautiful_)+regex', '^my_beautiful_beautiful_beautiful_regex')

Metadata

Release files for pyregexp 0.3.1

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

Source distribution (sdist)

Source distribution for pyregexp 0.3.1
File Size Uploaded Provenance Actions
pyregexp-0.3.1.tar.gz 18.0 kB Without provenance Details for pyregexp-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyregexp 0.3.1
File Interpreter ABI Platform Actions
pyregexp-0.3.1-py3-none-any.whl Python 3 none any Details for pyregexp-0.3.1-py3-none-any.whl

Total release size: 32.4 kB

Release files / pyregexp-0.3.1.tar.gz

Download URL pyregexp-0.3.1.tar.gz
Size 18.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2bc06d1d50798b8cd81b5ffc003422621e46a6b6eaa449149c989601d6e86f2d
BLAKE2b-256 checksum
How to use checksums
54e448dd96b9235abe4592bf3f1e01dfaa527a4b8e5a7c4c1d4333adf2c13f46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Release files / pyregexp-0.3.1-py3-none-any.whl

Download URL pyregexp-0.3.1-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af992a9de8bdfb7124dbc8aaea52cd6f776f0986cfd12e51b080ff81e75fb041
BLAKE2b-256 checksum
How to use checksums
617b64e9d82a93b1a2eb4909f24637a68cb09f59444914e8d0422e4d26af4f18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Security for pyregexp 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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