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)
| File | Size | Uploaded | |
|---|---|---|---|
| pyregexp-0.3.1.tar.gz | 18.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|