Skip to main content

Simplify regex matching, extraction, and replacement with human-friendly syntax

Project description

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

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

pyregexkit-0.1.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyregexkit-0.1.0-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file pyregexkit-0.1.0.tar.gz.

File metadata

  • Download URL: pyregexkit-0.1.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pyregexkit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cc990e96a11fa5034f43306ab2934e2c16d1333cb8c031995a0a54f2e1115916
MD5 08ef22c3b483e6313d2a3a845452f1cb
BLAKE2b-256 72e76c5a9bcb6f8f016ce9b071d3add084a048f88027e4c1111a25d587ef6f14

See more details on using hashes here.

File details

Details for the file pyregexkit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyregexkit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pyregexkit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c8cd16f4a0d0912d4bcdaf75476a3165dbca444b6e87586d22ada94a7ee600d
MD5 7f7b13444666d60ab7ef6eb142c61f39
BLAKE2b-256 a23a36a61aab95140e1cfc5b58aecb24a83d82131ef270b634d23fb2232f987c

See more details on using hashes here.

Supported by

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