Regex testing, matching, extraction, and replacement CLI
Project description
regexkit
Regex testing, matching, extraction, and replacement CLI. Human-friendly output + --json for automation.
Install
pip install regexkit-cli
Commands
regexkit test '\d+' "abc 123" # Test if pattern matches
regexkit match '(\w+)@(\w+\.\w+)' text # Find all matches with groups
regexkit extract '\b\d{3}\b' -f data.txt # Extract matches, one per line
regexkit replace 'foo' 'bar' "foo baz foo" # Replace matches
regexkit split '[,;]' "a,b;c" # Split by pattern
regexkit escape 'hello.world*' # Escape special chars
regexkit explain '^\d{3}-\d{4}$' # Explain pattern tokens
All commands support -i (ignorecase), -m (multiline), -s (dotall), --json, and file/stdin input.
For AI Agents
See SKILL.md for agent-optimized documentation.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file regexkit_cli-0.1.0.tar.gz.
File metadata
- Download URL: regexkit_cli-0.1.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7db87817359502cf21c6084b406943fa5817df7366f1250bd57939954eeeabe9
|
|
| MD5 |
932c4b67ae8c7ff71d0e0103b4c394f1
|
|
| BLAKE2b-256 |
2d863146c0e1687bec0ebdc88b9ad51ce7abbe9d93ba4077d302178f424b1c20
|
File details
Details for the file regexkit_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: regexkit_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48341d448cc44769f71a3fe0e15178b2fd3854bf55336f6a704c0112ab9296ca
|
|
| MD5 |
73bc112fcb3b2fa3cc42612312d0e547
|
|
| BLAKE2b-256 |
8bc321fbd347666f7dbdb2770c6200dc18d5e7c62e4e2e97c50c6dd6e1c039a7
|