← 返回
未分类 中文

Rxtool

Test, extract, replace, split, and explain regular expressions. Use when asked to test a regex pattern, extract matches from text, do regex replacements, spl...
测试、提取、替换、拆分并解释正则表达式。用于测试正则、提取匹配、替换及拆分文本,以及解释正则模式。
rogue-agent1 rogue-agent1 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 437
下载
💾 0
安装
1
版本
#latest

概述

rxtool 🔤

Regex Swiss army knife — test, extract, replace, split, explain.

Commands

# 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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-03 09:46 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

Web Monitor

rogue-agent1
监控网页内容变化,获取提醒。追踪URL,检测更新,查看差异。适用于被要求监视网站或跟踪页面变化的场景。
★ 3 📥 4,912
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 689 📥 332,567
dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 42,374