Skip to main content

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

Project description

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

Uploaded Source

Built Distributions

backrefs-5.6-py312-none-any.whl (398.0 kB view details)

Uploaded Python 3.12

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

Uploaded Python 3.11

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

Uploaded Python 3.10

backrefs-5.6-py39-none-any.whl (380.4 kB view details)

Uploaded Python 3.9

backrefs-5.6-py38-none-any.whl (369.4 kB view details)

Uploaded Python 3.8

File details

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

File metadata

  • Download URL: backrefs-5.6.tar.gz
  • Upload date:
  • Size: 5.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for backrefs-5.6.tar.gz
Algorithm Hash digest
SHA256 6d5484734adb53e1ef484a2d715ab32eb57cbd6dca41bd0f853f2f9c8eba8468
MD5 4e7865b7696f5d287b87d0c7a8b16f7c
BLAKE2b-256 b4daae3a15828cea30fbe5f71a32ad63019c71fe570cee3d37e025f9a5c81c9c

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: backrefs-5.6-py312-none-any.whl
  • Upload date:
  • Size: 398.0 kB
  • Tags: Python 3.12
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for backrefs-5.6-py312-none-any.whl
Algorithm Hash digest
SHA256 32c05b308d515ff890f6af283e3702a8db5dea44e72d076878f18416dd27636e
MD5 ac96511178a05f438a92e93e19c5afd4
BLAKE2b-256 759f7a1a2ab3186d2bcee7cc6d6fcc2b44ae69ccb210c9755f37de70cef576c5

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: backrefs-5.6-py311-none-any.whl
  • Upload date:
  • Size: 392.2 kB
  • Tags: Python 3.11
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for backrefs-5.6-py311-none-any.whl
Algorithm Hash digest
SHA256 a4a5078864176e1a0e835eee7f97d971f9af4ed01f7af2fc580c5a9dd5eb59e8
MD5 78024436a29e32ae9c694fe3d34c0fef
BLAKE2b-256 115b6983835bb5630f7dad87896f8df6e86bbc0c28c5c2acc6edbb5f0596304d

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: backrefs-5.6-py310-none-any.whl
  • Upload date:
  • Size: 380.4 kB
  • Tags: Python 3.10
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for backrefs-5.6-py310-none-any.whl
Algorithm Hash digest
SHA256 34e5826e22ca9e494b3501c706093eea64d59502d08ba8ea7988b32686f08f58
MD5 b27569cb3d1fe03f8b132fb66277d7ee
BLAKE2b-256 29987c020fc82241f66e2c3481832e9adfb80d5fc69064e77f72d1cf0e97d9e3

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: backrefs-5.6-py39-none-any.whl
  • Upload date:
  • Size: 380.4 kB
  • Tags: Python 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for backrefs-5.6-py39-none-any.whl
Algorithm Hash digest
SHA256 f9a17c95a3d87bc39edcc0dde61e35d7a81497477a4f4dba4cc068e3b9e94cfd
MD5 729ebbbccf548525f3ad0c0e2ca29e98
BLAKE2b-256 7f45dfddd4e47bb054c057859a6b819f3e8dafebcda76b68690b7fcd5ae006be

See more details on using hashes here.

Provenance

File details

Details for the file backrefs-5.6-py38-none-any.whl.

File metadata

  • Download URL: backrefs-5.6-py38-none-any.whl
  • Upload date:
  • Size: 369.4 kB
  • Tags: Python 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for backrefs-5.6-py38-none-any.whl
Algorithm Hash digest
SHA256 42e4be3fff89620b6a6d8ad90d60d717b6062ec749ad606e3c83a5462e979f2f
MD5 000235d8da5011151edc56cf2c3fd0b2
BLAKE2b-256 c6faea71d5027a6ea7779b2816db10435219d3315445a7a34e6b00bea1c39263

See more details on using hashes here.

Provenance

Supported by

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