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.5.1.tar.gz
(5.4 MB
view hashes)
Built Distributions
backrefs-5.5.1-py311-none-any.whl
(392.2 kB
view hashes)
backrefs-5.5.1-py310-none-any.whl
(380.4 kB
view hashes)
backrefs-5.5.1-py39-none-any.whl
(380.4 kB
view hashes)
backrefs-5.5.1-py38-none-any.whl
(369.4 kB
view hashes)
backrefs-5.5.1-py37-none-any.whl
(361.5 kB
view hashes)
Close
Hashes for backrefs-5.5.1-py311-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b34082e9f6c9c2fb297b394a1f4336cb994777d77b36cfe9c4c6021c3b05579 |
|
MD5 | 351ce1b097ed6ced7699e0fc5578cda6 |
|
BLAKE2b-256 | 22d6481908f16adb4db177d7f0d795f34de75309386b4d484c8e23d2d1fa474e |
Close
Hashes for backrefs-5.5.1-py310-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08cacfb730f1d17daf08bff83bfdff36ad97f4a456161b4cec8d168e297afeb2 |
|
MD5 | 2c847ccd006a0142f77538fdcd229345 |
|
BLAKE2b-256 | f364e64318a91f7b9975b9544a60c89bf62b0a25d43c47d89372b332e142f28e |
Close
Hashes for backrefs-5.5.1-py39-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b264e19d8bee8aa44b4e4c28d1705b50b6c557ebd16b94e87537d48550a1c8d |
|
MD5 | aad22853825bbd0ac6613f5fcbeb3523 |
|
BLAKE2b-256 | 1a2a1d9394ca4368c6ff6e67082cb670b66ad8fb27f81f5e304c58eeb2d0695f |
Close
Hashes for backrefs-5.5.1-py38-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30d358f28b4f3d7782b2eb50b150d8b9fc43cb3bc536f1f017fb9f222bfd42c6 |
|
MD5 | 5ff17511ae5a3759c909ceb22d96527f |
|
BLAKE2b-256 | 4f57cd038ab6e2acd531d5c09cb886ca14b49d0c1998e5d467e9a2fa23b773a8 |
Close
Hashes for backrefs-5.5.1-py37-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c98b05a7b60620e3e631d3341be026a9ddc492f2297f983fcefdaccde1bf06a2 |
|
MD5 | 5204e0934ccbc8eebc3ab405a7e22341 |
|
BLAKE2b-256 | 98ae7257a77c7e63108af9fd7362ff2a8fca8b2157e07ac81fc489654341949d |