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.5.1.tar.gz (5.4 MB view details)

Uploaded Source

Built Distributions

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

Uploaded Python 3.11

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

Uploaded Python 3.10

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

Uploaded Python 3.9

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

Uploaded Python 3.8

backrefs-5.5.1-py37-none-any.whl (361.5 kB view details)

Uploaded Python 3.7

File details

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

File metadata

  • Download URL: backrefs-5.5.1.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.5.1.tar.gz
Algorithm Hash digest
SHA256 1a0b20aa770165a407502d870c4041448b2b6773655e88e2031a8f5e6d912741
MD5 834f8af2d434cd8d97e31148a15ea966
BLAKE2b-256 9d83643a7f41c2bfd7f1cf8527df340b000ca10209a502a2d19d0f59a679fea3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: backrefs-5.5.1-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.5.1-py311-none-any.whl
Algorithm Hash digest
SHA256 8b34082e9f6c9c2fb297b394a1f4336cb994777d77b36cfe9c4c6021c3b05579
MD5 351ce1b097ed6ced7699e0fc5578cda6
BLAKE2b-256 22d6481908f16adb4db177d7f0d795f34de75309386b4d484c8e23d2d1fa474e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: backrefs-5.5.1-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.5.1-py310-none-any.whl
Algorithm Hash digest
SHA256 08cacfb730f1d17daf08bff83bfdff36ad97f4a456161b4cec8d168e297afeb2
MD5 2c847ccd006a0142f77538fdcd229345
BLAKE2b-256 f364e64318a91f7b9975b9544a60c89bf62b0a25d43c47d89372b332e142f28e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: backrefs-5.5.1-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.5.1-py39-none-any.whl
Algorithm Hash digest
SHA256 5b264e19d8bee8aa44b4e4c28d1705b50b6c557ebd16b94e87537d48550a1c8d
MD5 aad22853825bbd0ac6613f5fcbeb3523
BLAKE2b-256 1a2a1d9394ca4368c6ff6e67082cb670b66ad8fb27f81f5e304c58eeb2d0695f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: backrefs-5.5.1-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.5.1-py38-none-any.whl
Algorithm Hash digest
SHA256 30d358f28b4f3d7782b2eb50b150d8b9fc43cb3bc536f1f017fb9f222bfd42c6
MD5 5ff17511ae5a3759c909ceb22d96527f
BLAKE2b-256 4f57cd038ab6e2acd531d5c09cb886ca14b49d0c1998e5d467e9a2fa23b773a8

See more details on using hashes here.

File details

Details for the file backrefs-5.5.1-py37-none-any.whl.

File metadata

  • Download URL: backrefs-5.5.1-py37-none-any.whl
  • Upload date:
  • Size: 361.5 kB
  • Tags: Python 3.7
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for backrefs-5.5.1-py37-none-any.whl
Algorithm Hash digest
SHA256 c98b05a7b60620e3e631d3341be026a9ddc492f2297f983fcefdaccde1bf06a2
MD5 5204e0934ccbc8eebc3ab405a7e22341
BLAKE2b-256 98ae7257a77c7e63108af9fd7362ff2a8fca8b2157e07ac81fc489654341949d

See more details on using hashes here.

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