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.7.post1.tar.gz (6.6 MB view details)

Uploaded Source

Built Distributions

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

Uploaded Python 3.12

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

Uploaded Python 3.11

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

Uploaded Python 3.10

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

Uploaded Python 3.9

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

Uploaded Python 3.8

File details

Details for the file backrefs-5.7.post1.tar.gz.

File metadata

  • Download URL: backrefs-5.7.post1.tar.gz
  • Upload date:
  • Size: 6.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for backrefs-5.7.post1.tar.gz
Algorithm Hash digest
SHA256 8b0f83b770332ee2f1c8244f4e03c77d127a0fa529328e6a0e77fa25bee99678
MD5 139cf9f747945d853bf5012381d09d45
BLAKE2b-256 df30903f35159c87ff1d92aa3fcf8cb52de97632a21e0ae43ed940f5d033e01a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for backrefs-5.7.post1-py312-none-any.whl
Algorithm Hash digest
SHA256 a6142201c8293e75bce7577ac29e1a9438c12e730d73a59efdd1b75528d1a6c5
MD5 7dd99c95a40ba455c0a3703acd67a94c
BLAKE2b-256 6a0033403f581b732ca70fdebab558e8bbb426a29c34e0c3ed674a479b74beea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for backrefs-5.7.post1-py311-none-any.whl
Algorithm Hash digest
SHA256 712ea7e494c5bf3291156e28954dd96d04dc44681d0e5c030adf2623d5606d51
MD5 622c2e810de5118e304bb8392866d5b5
BLAKE2b-256 897239ef491caef3abae945f5a5fd72830d3b596bfac0630508629283585e213

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for backrefs-5.7.post1-py310-none-any.whl
Algorithm Hash digest
SHA256 c5e3fd8fd185607a7cb1fefe878cfb09c34c0be3c18328f12c574245f1c0287e
MD5 bd05f75e6aa51b197dc24aad0298fbcd
BLAKE2b-256 24bb47fc255d1060dcfd55b460236380edd8ebfc5b2a42a0799ca90c9fc983e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for backrefs-5.7.post1-py39-none-any.whl
Algorithm Hash digest
SHA256 05c04af2bf752bb9a6c9dcebb2aff2fab372d3d9d311f2a138540e307756bd3a
MD5 fd83940e69fa3cd3c91f4fb0bdc9ef5c
BLAKE2b-256 6fe8e43f535c0a17a695e5768670fc855a0e5d52dc0d4135b3915bfa355f65ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for backrefs-5.7.post1-py38-none-any.whl
Algorithm Hash digest
SHA256 ec61b1ee0a4bfa24267f6b67d0f8c5ffdc8e0d7dc2f18a2685fd1d8d9187054a
MD5 6c6dfd634721ef45e6a4bc42239e5859
BLAKE2b-256 5deadf0ac74a26838f6588aa012d5d801831448b87d0a7d0aefbbfabbe894870

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