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-8.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-8.0-py314-none-any.whl (411.9 kB view details)

Uploaded Python 3.14

backrefs-8.0-py313-none-any.whl (400.0 kB view details)

Uploaded Python 3.13

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

Uploaded Python 3.12

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

Uploaded Python 3.11

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

Uploaded Python 3.10

File details

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

File metadata

  • Download URL: backrefs-8.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.14

File hashes

Hashes for backrefs-8.0.tar.gz
Algorithm Hash digest
SHA256 b556cd7d36c3a3a2f256b89590b176b8eddfb73bcfaee3a3ddd84ea66d21ce50
MD5 f6fa9f915342024a4506bd9f071f3884
BLAKE2b-256 ec564744bcd0c82184e80c52b0ac4076c261a8ffa1f1b343ff2f6e89ce0e1cef

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for backrefs-8.0-py314-none-any.whl
Algorithm Hash digest
SHA256 9ec96efa080938be92323e8e730e57718c9c88eb15ad70bbef4e1766df591408
MD5 057a74bb3c7531e24b29e1b3ee4c6a5b
BLAKE2b-256 1ccfe5f9b68a5b0e939a2fb933a66c20180d0c9241bf8927f7a47fa48c1675e9

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for backrefs-8.0-py313-none-any.whl
Algorithm Hash digest
SHA256 601ce68ca12385dbda06ce264406b4c4210cf5b79fd0fd627592365c92f29a88
MD5 bfa16d2cfae52344549574018bebeaf2
BLAKE2b-256 8a6947a3dc20abc4fa5486655fde681bd55e63211b46c886d8c02223d6468431

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for backrefs-8.0-py312-none-any.whl
Algorithm Hash digest
SHA256 87f0fae8c5f207fe9f4b2887efc71d42f4900ac78faa1af08d675ef303692dc5
MD5 5386f0a63d9ec531e10372a9e49d261b
BLAKE2b-256 2913232505664e8e2a0c7a2eb0c505cfade9d715538f89a5d62bc4c272968f62

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for backrefs-8.0-py311-none-any.whl
Algorithm Hash digest
SHA256 f0c35cf0102ba6b6070c12a492be3c1c1d3f5839529784b9a9565d6d04569a01
MD5 91fce6f434ad2c14570b1f980520b57a
BLAKE2b-256 e1294bd7ae72a2634da00379c2b3bcc5439e7c94620235c6afea8af15229a973

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for backrefs-8.0-py310-none-any.whl
Algorithm Hash digest
SHA256 4a627b817fd2dce43b79ab48da63613340509381cd8ce0897078a0bce79a2ab8
MD5 fc5780aa518969572319554e42eaca06
BLAKE2b-256 e3fd9bf53b6a6f6f519ffaac765df2f2a25e5c2fc6d32cfd2b2747099e72c911

See more details on using hashes here.

Provenance

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