Skip to main content

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

Project description

Donate via PayPal 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-7.0.tar.gz (7.0 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

backrefs-7.0-py314-none-any.whl (412.3 kB view details)

Uploaded Python 3.14

backrefs-7.0-py313-none-any.whl (400.5 kB view details)

Uploaded Python 3.13

backrefs-7.0-py312-none-any.whl (398.5 kB view details)

Uploaded Python 3.12

backrefs-7.0-py311-none-any.whl (392.6 kB view details)

Uploaded Python 3.11

backrefs-7.0-py310-none-any.whl (380.8 kB view details)

Uploaded Python 3.10

File details

Details for the file backrefs-7.0.tar.gz.

File metadata

  • Download URL: backrefs-7.0.tar.gz
  • Upload date:
  • Size: 7.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for backrefs-7.0.tar.gz
Algorithm Hash digest
SHA256 4989bb9e1e99eb23647c7160ed51fb21d0b41b5d200f2d3017da41e023097e82
MD5 a499a84656a1f1fa70ad664fe05bfe55
BLAKE2b-256 5ea7a7dd63622beef68cc0d3c3c36d472e143dd95443d5ebf14cd1a5b4dfbf11

See more details on using hashes here.

Provenance

The following attestation bundles were made for backrefs-7.0.tar.gz:

Publisher: deploy.yml on facelessuser/backrefs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file backrefs-7.0-py314-none-any.whl.

File metadata

  • Download URL: backrefs-7.0-py314-none-any.whl
  • Upload date:
  • Size: 412.3 kB
  • Tags: Python 3.14
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for backrefs-7.0-py314-none-any.whl
Algorithm Hash digest
SHA256 a6448b28180e3ca01134c9cf09dcebafad8531072e09903c5451748a05f24bc9
MD5 a01af40c1c12b7bdb7707e424049bc6b
BLAKE2b-256 3e5cfb93d3092640a24dfb7bd7727a24016d7c01774ca013e60efd3f683c8002

See more details on using hashes here.

Provenance

The following attestation bundles were made for backrefs-7.0-py314-none-any.whl:

Publisher: deploy.yml on facelessuser/backrefs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file backrefs-7.0-py313-none-any.whl.

File metadata

  • Download URL: backrefs-7.0-py313-none-any.whl
  • Upload date:
  • Size: 400.5 kB
  • Tags: Python 3.13
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for backrefs-7.0-py313-none-any.whl
Algorithm Hash digest
SHA256 f2c52955d631b9e1ac4cd56209f0a3a946d592b98e7790e77699339ae01c102a
MD5 61084a2de90f146c8e30f57f289e94da
BLAKE2b-256 00bb90ba423612b6aa0adccc6b1874bcd4a9b44b660c0c16f346611e00f64ac3

See more details on using hashes here.

Provenance

The following attestation bundles were made for backrefs-7.0-py313-none-any.whl:

Publisher: deploy.yml on facelessuser/backrefs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file backrefs-7.0-py312-none-any.whl.

File metadata

  • Download URL: backrefs-7.0-py312-none-any.whl
  • Upload date:
  • Size: 398.5 kB
  • Tags: Python 3.12
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for backrefs-7.0-py312-none-any.whl
Algorithm Hash digest
SHA256 ca42ce6a49ace3d75684dfa9937f3373902a63284ecb385ce36d15e5dcb41c12
MD5 bc6894af3884b287e37230904547ff2b
BLAKE2b-256 36da87912ddec6e06feffbaa3d7aa18fc6352bee2e8f1fee185d7d1690f8f4e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for backrefs-7.0-py312-none-any.whl:

Publisher: deploy.yml on facelessuser/backrefs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file backrefs-7.0-py311-none-any.whl.

File metadata

  • Download URL: backrefs-7.0-py311-none-any.whl
  • Upload date:
  • Size: 392.6 kB
  • Tags: Python 3.11
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for backrefs-7.0-py311-none-any.whl
Algorithm Hash digest
SHA256 a0fa7360c63509e9e077e174ef4e6d3c21c8db94189b9d957289ae6d794b9475
MD5 c089e17e1acd07c264c02d27ec16aa96
BLAKE2b-256 c9b59302644225ba7dfa934a2ff2b9c7bb85701313a90dddb3dfaf693fa5bae2

See more details on using hashes here.

Provenance

The following attestation bundles were made for backrefs-7.0-py311-none-any.whl:

Publisher: deploy.yml on facelessuser/backrefs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file backrefs-7.0-py310-none-any.whl.

File metadata

  • Download URL: backrefs-7.0-py310-none-any.whl
  • Upload date:
  • Size: 380.8 kB
  • Tags: Python 3.10
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for backrefs-7.0-py310-none-any.whl
Algorithm Hash digest
SHA256 b57cd227ea556b0aed3dc9b8da4628db4eabc0402c6d7fcfc69283a93955f7e9
MD5 afbf7a187cee114e04eff7b662654b7e
BLAKE2b-256 d43939a31d7eae729ea14ed10c3ccef79371197177b9355a86cb3525709e8502

See more details on using hashes here.

Provenance

The following attestation bundles were made for backrefs-7.0-py310-none-any.whl:

Publisher: deploy.yml on facelessuser/backrefs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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