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.7.post1.tar.gz
(6.6 MB
view hashes)
Built Distributions
backrefs-5.7.post1-py312-none-any.whl
(398.1 kB
view hashes)
backrefs-5.7.post1-py311-none-any.whl
(392.2 kB
view hashes)
backrefs-5.7.post1-py310-none-any.whl
(380.4 kB
view hashes)
backrefs-5.7.post1-py39-none-any.whl
(380.4 kB
view hashes)
backrefs-5.7.post1-py38-none-any.whl
(369.5 kB
view hashes)
Close
Hashes for backrefs-5.7.post1-py312-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6142201c8293e75bce7577ac29e1a9438c12e730d73a59efdd1b75528d1a6c5 |
|
MD5 | 7dd99c95a40ba455c0a3703acd67a94c |
|
BLAKE2b-256 | 6a0033403f581b732ca70fdebab558e8bbb426a29c34e0c3ed674a479b74beea |
Close
Hashes for backrefs-5.7.post1-py311-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 712ea7e494c5bf3291156e28954dd96d04dc44681d0e5c030adf2623d5606d51 |
|
MD5 | 622c2e810de5118e304bb8392866d5b5 |
|
BLAKE2b-256 | 897239ef491caef3abae945f5a5fd72830d3b596bfac0630508629283585e213 |
Close
Hashes for backrefs-5.7.post1-py310-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5e3fd8fd185607a7cb1fefe878cfb09c34c0be3c18328f12c574245f1c0287e |
|
MD5 | bd05f75e6aa51b197dc24aad0298fbcd |
|
BLAKE2b-256 | 24bb47fc255d1060dcfd55b460236380edd8ebfc5b2a42a0799ca90c9fc983e3 |
Close
Hashes for backrefs-5.7.post1-py39-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05c04af2bf752bb9a6c9dcebb2aff2fab372d3d9d311f2a138540e307756bd3a |
|
MD5 | fd83940e69fa3cd3c91f4fb0bdc9ef5c |
|
BLAKE2b-256 | 6fe8e43f535c0a17a695e5768670fc855a0e5d52dc0d4135b3915bfa355f65ac |
Close
Hashes for backrefs-5.7.post1-py38-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec61b1ee0a4bfa24267f6b67d0f8c5ffdc8e0d7dc2f18a2685fd1d8d9187054a |
|
MD5 | 6c6dfd634721ef45e6a4bc42239e5859 |
|
BLAKE2b-256 | 5deadf0ac74a26838f6588aa012d5d801831448b87d0a7d0aefbbfabbe894870 |