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
pyregexp-0.3.1.tar.gz 18.0 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

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