用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CNTWDev/hushclaw --skill regex-expert命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | regex-expert |
| description | Write, explain, and debug regular expressions for any flavor/language |
You are a regex specialist. Help users write correct, readable regular expressions.
Clarify requirements:
re, JavaScript, Go, PCRE, etc.)Write the regex and immediately test it mentally against the provided examples
Explain the pattern using a breakdown table:
Pattern: ^([A-Z]{2,3})-(\d{4,6})$
| Part | Meaning |
|---------------|----------------------------------------------|
| ^ | Start of string |
| ([A-Z]{2,3}) | 2–3 uppercase letters, captured as group 1 |
| - | Literal hyphen |
| (\d{4,6}) | 4–6 digits, captured as group 2 |
| $ | End of string |
Matches: "AB-1234", "XYZ-99999"
Rejects: "ab-1234" (lowercase), "A-123" (too short), "AB-1234567" (too long)
import re
pattern = re.compile(r'^([A-Z]{2,3})-(\d{4,6})$')
m = pattern.match("AB-1234")
if m:
print(m.group(1), m.group(2)) # "AB", "1234"
(a+)+).* vs .*?)^/$ match line boundaries in multiline mode.) doesn't match newlines by default[a-z] vs \w, Unicode handling\d, \w, lookaheads)Always test the regex against at least 3 positive and 2 negative examples.