re_patterns
python regular expressions for humans
Description
This module helps you build complex regular expressions.
Usage
Example:
>>> from re_patterns import Rstr
>>> regex = Rstr("Isaac").not_followed_by("Newton").named("non_newtonians")
>>> regex
'(?P<non-newtonians>Isaac(?!Newton))'
>>> match = regex.search("Isaac Lobkowicz, Isaac Newton")
>>> match.span()
(0, 5)
>>> match.group("non_newtonians")
'Isaac'
For further uses please look at the methods of the Rstr class in __init__.py.
Metadata
Release files for re-patterns 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| re_patterns-1.1.0.tar.gz | 6.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| re_patterns-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.3 kB
Release files / re_patterns-1.1.0.tar.gz
| Download URL | re_patterns-1.1.0.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aea86581037447bacaad1a40294780f23c246b58328535889ab6de7e411b34be
|
|
BLAKE2b-256 checksum How to use checksums |
af8e1b695e152b01dcec567df4ffbe3aa545676c3e1e667a7b126290220898b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Release files / re_patterns-1.1.0-py3-none-any.whl
| Download URL | re_patterns-1.1.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
342c266616498efbd9bab801ff568afe5295f489e0e153a49a324ce0e82813ca
|
|
BLAKE2b-256 checksum How to use checksums |
9a0eaa8b8aed4a9b49aea7ecc42f46ad0837519ebda14d7526ac2afe08bd332c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|