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-6.1.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-6.1-py314-none-any.whl (412.6 kB view details)

Uploaded Python 3.14

backrefs-6.1-py313-none-any.whl (400.7 kB view details)

Uploaded Python 3.13

backrefs-6.1-py312-none-any.whl (398.8 kB view details)

Uploaded Python 3.12

backrefs-6.1-py311-none-any.whl (392.9 kB view details)

Uploaded Python 3.11

backrefs-6.1-py310-none-any.whl (381.1 kB view details)

Uploaded Python 3.10

backrefs-6.1-py39-none-any.whl (381.1 kB view details)

Uploaded Python 3.9

File details

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

File metadata

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

File hashes

Hashes for backrefs-6.1.tar.gz
Algorithm Hash digest
SHA256 3bba1749aafe1db9b915f00e0dd166cba613b6f788ffd63060ac3485dc9be231
MD5 3e48811f2e7f99a20702e284ac7629e6
BLAKE2b-256 86e3bb3a439d5cb255c4774724810ad8073830fac9c9dee123555820c1bcc806

See more details on using hashes here.

Provenance

The following attestation bundles were made for backrefs-6.1.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-6.1-py314-none-any.whl.

File metadata

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

File hashes

Hashes for backrefs-6.1-py314-none-any.whl
Algorithm Hash digest
SHA256 13eafbc9ccd5222e9c1f0bec563e6d2a6d21514962f11e7fc79872fd56cbc853
MD5 d7b00e97b2ddfa0a3b1010a701e7201c
BLAKE2b-256 1d726296bad135bfafd3254ae3648cd152980a424bd6fed64a101af00cc7ba31

See more details on using hashes here.

Provenance

The following attestation bundles were made for backrefs-6.1-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-6.1-py313-none-any.whl.

File metadata

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

File hashes

Hashes for backrefs-6.1-py313-none-any.whl
Algorithm Hash digest
SHA256 4c9d3dc1e2e558965202c012304f33d4e0e477e1c103663fd2c3cc9bb18b0d05
MD5 7275f17bbe32c3a977653b98059a1361
BLAKE2b-256 eb957118e935b0b0bd3f94dfec2d852fd4e4f4f9757bdb49850519acd245cd3a

See more details on using hashes here.

Provenance

The following attestation bundles were made for backrefs-6.1-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-6.1-py312-none-any.whl.

File metadata

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

File hashes

Hashes for backrefs-6.1-py312-none-any.whl
Algorithm Hash digest
SHA256 c64698c8d2269343d88947c0735cb4b78745bd3ba590e10313fbf3f78c34da5a
MD5 eb32530cf6e83f463d470dd9299b8881
BLAKE2b-256 37c9fd117a6f9300c62bbc33bc337fd2b3c6bfe28b6e9701de336b52d7a797ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for backrefs-6.1-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-6.1-py311-none-any.whl.

File metadata

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

File hashes

Hashes for backrefs-6.1-py311-none-any.whl
Algorithm Hash digest
SHA256 e82bba3875ee4430f4de4b6db19429a27275d95a5f3773c57e9e18abc23fd2b7
MD5 bad28df9c7c82fb0635700021317f8ef
BLAKE2b-256 e69a8da246d988ded941da96c7ed945d63e94a445637eaad985a0ed88787cb89

See more details on using hashes here.

Provenance

The following attestation bundles were made for backrefs-6.1-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-6.1-py310-none-any.whl.

File metadata

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

File hashes

Hashes for backrefs-6.1-py310-none-any.whl
Algorithm Hash digest
SHA256 2a2ccb96302337ce61ee4717ceacfbf26ba4efb1d55af86564b8bbaeda39cac1
MD5 5bfaba60899cfe589617e6b6b584afe5
BLAKE2b-256 3beec216d52f58ea75b5e1841022bbae24438b19834a29b163cb32aa3a2a7c6e

See more details on using hashes here.

Provenance

The following attestation bundles were made for backrefs-6.1-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.

File details

Details for the file backrefs-6.1-py39-none-any.whl.

File metadata

  • Download URL: backrefs-6.1-py39-none-any.whl
  • Upload date:
  • Size: 381.1 kB
  • Tags: Python 3.9
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for backrefs-6.1-py39-none-any.whl
Algorithm Hash digest
SHA256 a9e99b8a4867852cad177a6430e31b0f6e495d65f8c6c134b68c14c3c95bf4b0
MD5 ca6cf606c6a9f2a46a18763cb8b914e5
BLAKE2b-256 02e3a4fa1946722c4c7b063cc25043a12d9ce9b4323777f89643be74cef2993c

See more details on using hashes here.

Provenance

The following attestation bundles were made for backrefs-6.1-py39-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