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.6.post1.tar.gz
.
File metadata
- Download URL: backrefs-5.6.post1.tar.gz
- Upload date:
- Size: 5.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d106527777b2854cb1a22718f608f7a30cffc71ab6c87b14bf0570ae0f1bf2a2 |
|
MD5 | ae05688a7365575a693a59a6bd67a149 |
|
BLAKE2b-256 | 5868ccac011ecd24574fc3d339572435ae1df8dd1bf57e35c34665a40e26b437 |
File details
Details for the file backrefs-5.6.post1-py312-none-any.whl
.
File metadata
- Download URL: backrefs-5.6.post1-py312-none-any.whl
- Upload date:
- Size: 398.1 kB
- Tags: Python 3.12
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f435b97f856b0a99d7a7942c21cb588d4680b2f9f6f73fd597e230b43632651 |
|
MD5 | 2d6731b16ed943ab2f818c160eb6b8d5 |
|
BLAKE2b-256 | 3129b2f7f6616bb213dbf4cecde70b9bfc5a9c0dbff59fe7b1f0515b78fde042 |
File details
Details for the file backrefs-5.6.post1-py311-none-any.whl
.
File metadata
- Download URL: backrefs-5.6.post1-py311-none-any.whl
- Upload date:
- Size: 392.2 kB
- Tags: Python 3.11
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f734273545d1647f068342cdeef34704e22a379b51e851aece13b2472d0cb098 |
|
MD5 | 21b811af57eadc3f040f864d051d3fb2 |
|
BLAKE2b-256 | ef41b1e0c11c967a42d7223ce558bcd6acc2f4166a9d319498a1f783e81562e0 |
File details
Details for the file backrefs-5.6.post1-py310-none-any.whl
.
File metadata
- Download URL: backrefs-5.6.post1-py310-none-any.whl
- Upload date:
- Size: 380.4 kB
- Tags: Python 3.10
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2091c5d6e8d748e54eba3027382b19745ce99708f050ffce336926dbcc961d33 |
|
MD5 | efdc2159abe5c6d990bc24c27c640149 |
|
BLAKE2b-256 | c1ccec98b988a137f0c7ace6a63778d3e54301c994f3d68c2f290c2801969417 |
File details
Details for the file backrefs-5.6.post1-py39-none-any.whl
.
File metadata
- Download URL: backrefs-5.6.post1-py39-none-any.whl
- Upload date:
- Size: 380.4 kB
- Tags: Python 3.9
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17bc75dc2b44af3a2c1ccddf05e9ba7baaf1b309b55c2c5164a59ab8733d161f |
|
MD5 | 4d1f6ec09fc692e97670bd2b047f8554 |
|
BLAKE2b-256 | dc45ad1427c426e77c2074d1523a2dae0fe73830729ee5e5c89078053198c241 |
File details
Details for the file backrefs-5.6.post1-py38-none-any.whl
.
File metadata
- Download URL: backrefs-5.6.post1-py38-none-any.whl
- Upload date:
- Size: 369.5 kB
- Tags: Python 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07c6b45e149b075134696e84fc07761b9a4149657cdb0de643bea41054c98f90 |
|
MD5 | 8d1ca8bca05cd0cc41dfc6d32ace969e |
|
BLAKE2b-256 | 4f2da780739b225b7e317680cdf35e269472d6b2f184358b7002e5541dbf2183 |