pyregexkit
Simplify regex matching, extraction, and replacement with human-friendly syntax.
Installation
pip install pyregexkit
Usage
from pyregexkit import match_pattern, extract_all, replace_all
# Check if pattern matches
match_pattern(r"\d+", "123") # True
# Extract all matches
extract_all(r"\d+", "abc123def456") # ["123", "456"]
# Replace all matches
replace_all(r"\d+", "X", "abc123def456") # "abcXdefX"
License
MIT
Release files for pyregexkit 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyregexkit-0.1.0.tar.gz | 2.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyregexkit-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.6 kB
Release files / pyregexkit-0.1.0.tar.gz
| Download URL | pyregexkit-0.1.0.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc990e96a11fa5034f43306ab2934e2c16d1333cb8c031995a0a54f2e1115916
|
|
BLAKE2b-256 checksum How to use checksums |
72e76c5a9bcb6f8f016ce9b071d3add084a048f88027e4c1111a25d587ef6f14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / pyregexkit-0.1.0-py3-none-any.whl
| Download URL | pyregexkit-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c8cd16f4a0d0912d4bcdaf75476a3165dbca444b6e87586d22ada94a7ee600d
|
|
BLAKE2b-256 checksum How to use checksums |
a23a36a61aab95140e1cfc5b58aecb24a83d82131ef270b634d23fb2232f987c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|