← 返回
开发者工具 中文

Regex Playground

Learn, test, and debug regular expressions with real-time matching, explanations, and common patterns. Perfect for developers learning regex or debugging com...
实时匹配、解释和常用模式,帮助学习、测试和调试正则表达式。适合正在学习正则或调试代码的开发者。
chenxuyaun
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 504
下载
💾 3
安装
1
版本
#latest

概述

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

PatternMeaningExample
---------------------------
\d+One or more digits123
\w+Word charactershello_123
[a-z]Letter rangea, b, c
^startStarts withstart...
end$Ends with...end
`ab`ORa or b
a*Zero or more a'', a, aaa
a+One or more aa, aaa

Commands

  • regex explain - Explain pattern in plain English
  • regex test - Test pattern against string
  • regex library - Show common patterns
  • regex generate - 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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 03:41 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 666 📥 323,779
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 920 📥 185,724
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 65 📥 179,827