返回顶部
r

regex-playground正则表达式练习场

Learn, test, and debug regular expressions with real-time matching, explanations, and common patterns. Perfect for developers learning regex or debugging complex patterns.

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

regex-playground

Regex Playground

交互式正则表达式学习与测试工具。

使用方法

regex 模式 测试字符串

功能特性

  • - 🎯 实时匹配
  • 📖 通俗易懂的英文解释
  • 🔍 匹配组提取
  • 📋 常用模式库
  • 🧪 测试用例生成器

示例

输入: regex (\w+)@(\w+)\.(\w+) test@example.com

输出:
✓ 匹配: test@example.com
组1: test
组2: example
组3: com

解释:

  • - (\w+) - 捕获单词字符 (test)
  • @ - 字面量 @
  • (\w+) - 捕获单词字符 (example)
  • \. - 字面量点号
  • (\w+) - 捕获单词字符 (com)

常用模式

模式含义示例
\d+一个或多个数字123
\w+
单词字符 | hello_123 | | [a-z] | 字母范围 | a, b, c | | ^start | 以...开头 | start... | | end$ | 以...结尾 | ...end | | a|b | 或 | a 或 b | | a* | 零个或多个 a | , a, aaa | | a+ | 一个或多个 a | a, aaa |

命令

  • - regex explain <模式> - 用通俗英语解释模式
  • regex test <模式> <字符串> - 测试模式与字符串的匹配
  • regex library - 显示常用模式
  • regex generate <类型> - 生成测试用例(邮箱、网址、电话等)

使用场景

  • - 调试代码中的正则表达式
  • 通过查看匹配结果学习正则表达式
  • 验证输入模式
  • 从字符串中提取数据

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 regex-playground-1776113597 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 regex-playground-1776113597 技能

通过命令行安装

skillhub install regex-playground-1776113597

下载

⬇ 下载 regex-playground v1.0.0(免费)

文件大小: 1.44 KB | 发布时间: 2026-4-15 14:09

v1.0.0 最新 2026-4-15 14:09
Initial release of regex-playground.

- Learn, test, and debug regular expressions interactively.
- Real-time matching and match group extraction.
- Plain English explanations for any regex.
- Library of common regex patterns.
- Generate test cases for common data types (email, URL, phone, etc.).
- Useful commands for explaining, testing, and learning regex.

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

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

p2p_official_large
返回顶部