backrefs
v8.0A wrapper around re and regex that adds additional back references.
371 KB Python 3.10+ py310-none-anyMIT
$ uv add backrefsBackrefs
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
Details
- Version
- 8.0
- License
- MIT
- Python
- >=3.10
- Maintainer
- Isaac Muse <[email protected]>
Links
Release Cadence
4
releases in the past year
avg 62 days between releases
Maintainers
- Isaac Muse · [email protected]