A wrapper around re and regex that adds additional back references.
Project description
Backrefs
Backrefs is a wrapper around Python's built-in Re and the 3rd party Regex library. Backrefs adds various additional back references (and a couple other features) that are known to some regular expression engines, but not to Python's Re and/or Regex. The supported back references actually vary depending on the regular expression engine being used as the engine may already have support for some.
from backrefs import bre
>>> pattern = bre.compile(r'(\p{Letter}+)')
>>> pattern.sub(r'\C\1\E', 'sometext')
'SOMETEXT'
Documentation
https://facelessuser.github.io/backrefs/
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file backrefs-5.5.tar.gz
.
File metadata
- Download URL: backrefs-5.5.tar.gz
- Upload date:
- Size: 5.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4659500cf46e0b82661516d898eb154233791373af7a03fe553c17abf28315d1 |
|
MD5 | 19e56c5f452b61fb9413016b9c489fb2 |
|
BLAKE2b-256 | b2437c6ee65155a6241a74b186d0fa66f0337a563ce3b2ff65bd50810946a858 |
Provenance
File details
Details for the file backrefs-5.5-py311-none-any.whl
.
File metadata
- Download URL: backrefs-5.5-py311-none-any.whl
- Upload date:
- Size: 392.2 kB
- Tags: Python 3.11
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aeb3077b48de9475cddd16676ceef430db4b2ffefcb034f4ac9b7f01c27994d7 |
|
MD5 | 584cd1211548620c869d486f7abbec3b |
|
BLAKE2b-256 | a1ef46c46f283c07e1febea9f26edc22b4b34a246d3746fdc0af231d760b7786 |
Provenance
File details
Details for the file backrefs-5.5-py310-none-any.whl
.
File metadata
- Download URL: backrefs-5.5-py310-none-any.whl
- Upload date:
- Size: 380.4 kB
- Tags: Python 3.10
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b2c5d022349b7cb80f42df02607bb36ee4ceefe76ad59518a543324e9db3dd3 |
|
MD5 | ed96f459f3c0e46b373bf577d51c0fc7 |
|
BLAKE2b-256 | 9fbfbcbc4095e7c88ca4b9b0625dcf94aed333347f3ac61f920d6edb87cca9f0 |
Provenance
File details
Details for the file backrefs-5.5-py39-none-any.whl
.
File metadata
- Download URL: backrefs-5.5-py39-none-any.whl
- Upload date:
- Size: 380.4 kB
- Tags: Python 3.9
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0b8fd619c732aaee20b6f513ad99fdca659bdbfd02a0af4513c234fcc48473d |
|
MD5 | ae5983c1f1be36199d5e15e253b06965 |
|
BLAKE2b-256 | c7d9a19634a4da18727908e86eca0ad2a7412c8029a6f28f1a39ee6e0e3bb885 |
Provenance
File details
Details for the file backrefs-5.5-py38-none-any.whl
.
File metadata
- Download URL: backrefs-5.5-py38-none-any.whl
- Upload date:
- Size: 369.5 kB
- Tags: Python 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48c02f362dfa56dc52dd0cf323b55b81251cacf1668bac946626892fcfe2fb1d |
|
MD5 | e2875eac6f150a3a52a3fd05baf474e3 |
|
BLAKE2b-256 | 0847bbd1aad8f4076eaad833dda7abaf89a510788d76bf59e641628d86de6712 |
Provenance
File details
Details for the file backrefs-5.5-py37-none-any.whl
.
File metadata
- Download URL: backrefs-5.5-py37-none-any.whl
- Upload date:
- Size: 361.5 kB
- Tags: Python 3.7
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0df23565fa61348980789c26848e342b286d1f29eeb8751e667764df45f69b2e |
|
MD5 | 169c3f8d231d38dc8b4fbf08108ce8ba |
|
BLAKE2b-256 | 41fca2e00a2a66818601690cfa90e30f9a31555cd9ff50d103ab899e9215a8d0 |