Development v1.0.0

regex-playground

Learn, test, and debug regular expressions with real-time matching, explanations, and common patterns. Perfect for...

chenxuyaun 更新于 2026-03-13 1 浏览
下载 SKILL

技能说明

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

使用场景

Interactive regular expression learning and testing tool.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/regex-playground
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 15 kB
SKILL.md text/markdown
---
name: regex-playground
description: Learn, test, and debug regular expressions with real-time matching, explanations, and common patterns. Perfect for developers learning regex or debugging complex patterns.
metadata:
  {
    "openclaw":
      {
        "requires": { "bins": [] },
        "install": [],
      },
  }
---

# Regex Playground

Interactive regular expression learning and testing tool.

## Usage

```
regex "pattern" "test string"
```

## Features

- 🎯 Real-time matching
- 📖 Plain English explanation
- 🔍 Match groups extraction
- 📋 Common patterns library
- 🧪 Test cases generator

## Example

```
Input: regex "(\w+)@(\w+)\.(\w+)" "test@example.com"

Output:
✓ Match: test@example.com
Group 1: test
Group 2: example  
Group 3: com

Explanation:
- (\w+) - capture word characters (test)
- @ - literal @
- (\w+) - capture word characters (example)
- \. - literal dot
- (\w+) - capture word characters (com)
```

## Common Patterns

| Pattern | Meaning | Example |
|---------|---------|---------|
| `\d+` | One or more digits | 123 |
| `\w+` | Word characters | hello_123 |
| `[a-z]` | Letter range | a, b, c |
| `^start` | Starts with | start... |
| `end$` | Ends with | ...end |
| `a|b` | OR | a or b |
| `a*` | Zero or more a | '', a, aaa |
| `a+` | One or more a | a, aaa |

## Commands

- `regex explain <pattern>` - Explain pattern in plain English
- `regex test <pattern> <string>` - Test pattern against string
- `regex library` - Show common patterns
- `regex generate <type>` - Generate test cases (email, url, phone, etc.)

## Use Cases

- Debug regex in code
- Learn regex by seeing matches
- Validate input patterns
- Extract data from strings

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。