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
backrefs-5.6.post1.tar.gz
(5.4 MB
view hashes)
Built Distributions
backrefs-5.6.post1-py312-none-any.whl
(398.1 kB
view hashes)
backrefs-5.6.post1-py311-none-any.whl
(392.2 kB
view hashes)
backrefs-5.6.post1-py310-none-any.whl
(380.4 kB
view hashes)
backrefs-5.6.post1-py39-none-any.whl
(380.4 kB
view hashes)
backrefs-5.6.post1-py38-none-any.whl
(369.5 kB
view hashes)
Close
Hashes for backrefs-5.6.post1-py312-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f435b97f856b0a99d7a7942c21cb588d4680b2f9f6f73fd597e230b43632651 |
|
MD5 | 2d6731b16ed943ab2f818c160eb6b8d5 |
|
BLAKE2b-256 | 3129b2f7f6616bb213dbf4cecde70b9bfc5a9c0dbff59fe7b1f0515b78fde042 |
Close
Hashes for backrefs-5.6.post1-py311-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f734273545d1647f068342cdeef34704e22a379b51e851aece13b2472d0cb098 |
|
MD5 | 21b811af57eadc3f040f864d051d3fb2 |
|
BLAKE2b-256 | ef41b1e0c11c967a42d7223ce558bcd6acc2f4166a9d319498a1f783e81562e0 |
Close
Hashes for backrefs-5.6.post1-py310-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2091c5d6e8d748e54eba3027382b19745ce99708f050ffce336926dbcc961d33 |
|
MD5 | efdc2159abe5c6d990bc24c27c640149 |
|
BLAKE2b-256 | c1ccec98b988a137f0c7ace6a63778d3e54301c994f3d68c2f290c2801969417 |
Close
Hashes for backrefs-5.6.post1-py39-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17bc75dc2b44af3a2c1ccddf05e9ba7baaf1b309b55c2c5164a59ab8733d161f |
|
MD5 | 4d1f6ec09fc692e97670bd2b047f8554 |
|
BLAKE2b-256 | dc45ad1427c426e77c2074d1523a2dae0fe73830729ee5e5c89078053198c241 |
Close
Hashes for backrefs-5.6.post1-py38-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07c6b45e149b075134696e84fc07761b9a4149657cdb0de643bea41054c98f90 |
|
MD5 | 8d1ca8bca05cd0cc41dfc6d32ace969e |
|
BLAKE2b-256 | 4f2da780739b225b7e317680cdf35e269472d6b2f184358b7002e5541dbf2183 |