Skip to main content

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

Project description

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

Uploaded Source

Built Distributions

backrefs-5.9-py314-none-any.whl (411.8 kB view details)

Uploaded Python 3.14

backrefs-5.9-py313-none-any.whl (399.8 kB view details)

Uploaded Python 3.13

backrefs-5.9-py312-none-any.whl (397.9 kB view details)

Uploaded Python 3.12

backrefs-5.9-py311-none-any.whl (392.1 kB view details)

Uploaded Python 3.11

backrefs-5.9-py310-none-any.whl (380.3 kB view details)

Uploaded Python 3.10

backrefs-5.9-py39-none-any.whl (380.3 kB view details)

Uploaded Python 3.9

File details

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

File metadata

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

File hashes

Hashes for backrefs-5.9.tar.gz
Algorithm Hash digest
SHA256 808548cb708d66b82ee231f962cb36faaf4f2baab032f2fbb783e9c2fdddaa59
MD5 800061441ccb169218c07a2b6c33c052
BLAKE2b-256 eba7312f673df6a79003279e1f55619abbe7daebbb87c17c976ddc0345c04c7b

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for backrefs-5.9-py314-none-any.whl
Algorithm Hash digest
SHA256 df5e169836cc8acb5e440ebae9aad4bf9d15e226d3bad049cf3f6a5c20cc8dc9
MD5 7e6cf26c5e2c181996cbacefb90cc172
BLAKE2b-256 fc24b29af34b2c9c41645a9f4ff117bae860291780d73880f449e0b5d948c070

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for backrefs-5.9-py313-none-any.whl
Algorithm Hash digest
SHA256 cc37b19fa219e93ff825ed1fed8879e47b4d89aa7a1884860e2db64ccd7c676b
MD5 c4e38048b8996b5021d85c1ef0f9ee1a
BLAKE2b-256 10bffa31834dc27a7f05e5290eae47c82690edc3a7b37d58f7fb35a1bdbf355b

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for backrefs-5.9-py312-none-any.whl
Algorithm Hash digest
SHA256 7fdf9771f63e6028d7fee7e0c497c81abda597ea45d6b8f89e8ad76994f5befa
MD5 8f7241335db56f4ab6ae6d77b4cfaf35
BLAKE2b-256 9d124f345407259dd60a0997107758ba3f221cf89a9b5a0f8ed5b961aef97253

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for backrefs-5.9-py311-none-any.whl
Algorithm Hash digest
SHA256 6907635edebbe9b2dc3de3a2befff44d74f30a4562adbb8b36f21252ea19c5cf
MD5 b642d67e24b84adf0217160109ad6b60
BLAKE2b-256 5507f0b3375bf0d06014e9787797e6b7cc02b38ac9ff9726ccfe834d94e9991e

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for backrefs-5.9-py310-none-any.whl
Algorithm Hash digest
SHA256 db8e8ba0e9de81fcd635f440deab5ae5f2591b54ac1ebe0550a2ca063488cd9f
MD5 3c1d1f1a918c18091cd7cb547a03c129
BLAKE2b-256 194d798dc1f30468134906575156c089c492cf79b5a5fd373f07fe26c4d046bf

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for backrefs-5.9-py39-none-any.whl
Algorithm Hash digest
SHA256 f48ee18f6252b8f5777a22a00a09a85de0ca931658f1dd96d4406a34f3748c60
MD5 3653e999a523793afaf8363a268a5909
BLAKE2b-256 41ff392bff89415399a979be4a65357a41d92729ae8580a66073d8ec8d810f98

See more details on using hashes here.

Provenance

The following attestation bundles were made for backrefs-5.9-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 Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page