Skip to main content

A wrapper around re and regex that adds additional back references.

Project description

Donate via PayPal Discord Build Coverage Status PyPI Version PyPI Downloads PyPI - Python Version License

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


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 details)

Uploaded Source

Built Distributions

backrefs-5.6.post1-py312-none-any.whl (398.1 kB view details)

Uploaded Python 3.12

backrefs-5.6.post1-py311-none-any.whl (392.2 kB view details)

Uploaded Python 3.11

backrefs-5.6.post1-py310-none-any.whl (380.4 kB view details)

Uploaded Python 3.10

backrefs-5.6.post1-py39-none-any.whl (380.4 kB view details)

Uploaded Python 3.9

backrefs-5.6.post1-py38-none-any.whl (369.5 kB view details)

Uploaded Python 3.8

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

Hashes for backrefs-5.6.post1.tar.gz
Algorithm Hash digest
SHA256 d106527777b2854cb1a22718f608f7a30cffc71ab6c87b14bf0570ae0f1bf2a2
MD5 ae05688a7365575a693a59a6bd67a149
BLAKE2b-256 5868ccac011ecd24574fc3d339572435ae1df8dd1bf57e35c34665a40e26b437

See more details on using hashes here.

File details

Details for the file backrefs-5.6.post1-py312-none-any.whl.

File metadata

File hashes

Hashes for backrefs-5.6.post1-py312-none-any.whl
Algorithm Hash digest
SHA256 2f435b97f856b0a99d7a7942c21cb588d4680b2f9f6f73fd597e230b43632651
MD5 2d6731b16ed943ab2f818c160eb6b8d5
BLAKE2b-256 3129b2f7f6616bb213dbf4cecde70b9bfc5a9c0dbff59fe7b1f0515b78fde042

See more details on using hashes here.

File details

Details for the file backrefs-5.6.post1-py311-none-any.whl.

File metadata

File hashes

Hashes for backrefs-5.6.post1-py311-none-any.whl
Algorithm Hash digest
SHA256 f734273545d1647f068342cdeef34704e22a379b51e851aece13b2472d0cb098
MD5 21b811af57eadc3f040f864d051d3fb2
BLAKE2b-256 ef41b1e0c11c967a42d7223ce558bcd6acc2f4166a9d319498a1f783e81562e0

See more details on using hashes here.

File details

Details for the file backrefs-5.6.post1-py310-none-any.whl.

File metadata

File hashes

Hashes for backrefs-5.6.post1-py310-none-any.whl
Algorithm Hash digest
SHA256 2091c5d6e8d748e54eba3027382b19745ce99708f050ffce336926dbcc961d33
MD5 efdc2159abe5c6d990bc24c27c640149
BLAKE2b-256 c1ccec98b988a137f0c7ace6a63778d3e54301c994f3d68c2f290c2801969417

See more details on using hashes here.

File details

Details for the file backrefs-5.6.post1-py39-none-any.whl.

File metadata

File hashes

Hashes for backrefs-5.6.post1-py39-none-any.whl
Algorithm Hash digest
SHA256 17bc75dc2b44af3a2c1ccddf05e9ba7baaf1b309b55c2c5164a59ab8733d161f
MD5 4d1f6ec09fc692e97670bd2b047f8554
BLAKE2b-256 dc45ad1427c426e77c2074d1523a2dae0fe73830729ee5e5c89078053198c241

See more details on using hashes here.

File details

Details for the file backrefs-5.6.post1-py38-none-any.whl.

File metadata

File hashes

Hashes for backrefs-5.6.post1-py38-none-any.whl
Algorithm Hash digest
SHA256 07c6b45e149b075134696e84fc07761b9a4149657cdb0de643bea41054c98f90
MD5 8d1ca8bca05cd0cc41dfc6d32ace969e
BLAKE2b-256 4f2da780739b225b7e317680cdf35e269472d6b2f184358b7002e5541dbf2183

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page