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

Uploaded Python 3.14

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

Uploaded Python 3.13

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

Uploaded Python 3.12

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

Uploaded Python 3.11

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

Uploaded Python 3.10

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

Uploaded Python 3.9

File details

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

File metadata

  • Download URL: backrefs-6.2.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.2.tar.gz
Algorithm Hash digest
SHA256 f44ff4d48808b243b6c0cdc6231e22195c32f77046018141556c66f8bab72a49
MD5 65e9896205cf46129a2cd98760d8c3a7
BLAKE2b-256 4ea6e325ec73b638d3ede4421b5445d4a0b8b219481826cc079d510100af356c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: backrefs-6.2-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.2-py314-none-any.whl
Algorithm Hash digest
SHA256 e5f805ae09819caa1aa0623b4a83790e7028604aa2b8c73ba602c4454e665de7
MD5 32fce5e4a238cad7a9ae57d76d9f2af7
BLAKE2b-256 af75be12ba31a6eb20dccef2320cd8ccb3f7d9013b68ba4c70156259fee9e409

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: backrefs-6.2-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.2-py313-none-any.whl
Algorithm Hash digest
SHA256 12df81596ab511f783b7d87c043ce26bc5b0288cf3bb03610fe76b8189282b2b
MD5 7f4adb6cf4c1650d6714b95e5808d940
BLAKE2b-256 c571c754b1737ad99102e03fa3235acb6cb6d3ac9d6f596cbc3e5f236705abd8

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: backrefs-6.2-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.2-py312-none-any.whl
Algorithm Hash digest
SHA256 c3f4b9cb2af8cda0d87ab4f57800b57b95428488477be164dd2b47be54db0c90
MD5 8ffcb022bfec02f0748556a43490d308
BLAKE2b-256 e36377e8c9745b4d227cce9f5e0a6f68041278c5f9b18588b35905f5f19c1beb

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: backrefs-6.2-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.2-py311-none-any.whl
Algorithm Hash digest
SHA256 08aa7fae530c6b2361d7bdcbda1a7c454e330cc9dbcd03f5c23205e430e5c3be
MD5 f1e20b1f3088b39015fc6165dcf155e6
BLAKE2b-256 0ff035240571e1b67ffb19dafb29ab34150b6f59f93f717b041082cdb1bfceb1

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: backrefs-6.2-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.2-py310-none-any.whl
Algorithm Hash digest
SHA256 0fdc7b012420b6b144410342caeb8adc54c6866cf12064abc9bb211302e496f8
MD5 80004ffafd5cb2d09284d96e98871f2d
BLAKE2b-256 1b393765df263e08a4df37f4f43cb5aa3c6c17a4bdd42ecfe841e04c26037171

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: backrefs-6.2-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.2-py39-none-any.whl
Algorithm Hash digest
SHA256 664e33cd88c6840b7625b826ecf2555f32d491800900f5a541f772c485f7cda7
MD5 c3a3b5f4fdc4f398822ee5bf3d2ffede
BLAKE2b-256 21f8d02f650c47d05034dcd6f9c8cf94f39598b7a89c00ecda0ecb2911bc27e9

See more details on using hashes here.

Provenance

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