返回顶部
r

rxtool

Test, extract, replace, split, and explain regular expressions. Use when asked to test a regex pattern, extract matches from text, do regex replacements, split text by pattern, or understand what a regex does. Supports named groups, case-insensitive/multiline/dotall flags, and JSON output. Works with stdin pipes or inline text. Zero dependencies.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
80
下载量
0
收藏
概述
安装方式
版本历史

rxtool

# rxtool 🔤 Regex Swiss army knife — test, extract, replace, split, explain. ## Commands ```bash # Test a pattern against text python3 scripts/rxtool.py test '(\d+)-(\d+)' "order-123-456" # Extract all matches python3 scripts/rxtool.py extract '\b\w+@\w+\.\w+\b' "email me at user@example.com" # Extract with JSON output echo "text" | python3 scripts/rxtool.py extract '\w+' --json # Replace matches python3 scripts/rxtool.py replace '\d+' 'NUM' "got 42 items and 7 boxes" # Split by pattern python3 scripts/rxtool.py split '[,;\s]+' "a, b; c d" # Explain a regex python3 scripts/rxtool.py explain '(?P<year>\d{4})-(?P<month>\d{2})' ``` ## Features - Group capture (numbered and named) - Case-insensitive (-i), multiline (-m), dotall (-s) flags - Stdin pipe support - JSON output for extraction - Regex explanation with component breakdown

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 rxtool-1775972402 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 rxtool-1775972402 技能

通过命令行安装

skillhub install rxtool-1775972402

下载 Zip 包

⬇ 下载 rxtool v1.0.0

文件大小: 4.42 KB | 发布时间: 2026-4-13 11:50

v1.0.0 最新 2026-4-13 11:50
Initial release of rxtool: a command-line utility for working with regular expressions.

- Test regex patterns against text, extract matches, replace text, split by pattern, and explain regexes.
- Supports named and numbered group captures.
- Allows use of case-insensitive, multiline, and dotall flags.
- Provides JSON output option for extraction.
- Works with stdin pipes or inline input.
- Zero external dependencies required.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部