ワンクリックで
regex-puzzles-skill
Construct correct regular expressions for common text matching and validation challenges.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Construct correct regular expressions for common text matching and validation challenges.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Debug common SQL query errors by identifying anti-patterns and applying targeted fixes.
Teaches agents how to use the skillforge CLI to distill procedural skills from model traces.
Debug common Python runtime errors by reading tracebacks and applying targeted fixes.
| name | regex-puzzles-skill |
| description | Construct correct regular expressions for common text matching and validation challenges. |
| version | 0.1.0 |
| source_model | mock-strong |
| extracted_from | {"total_traces":10,"passed_traces":10,"failed_traces":0,"extractor":"manual@0.1","extracted_at":"2026-01-01T00:00:00Z"} |
| triggers | ["regex","pattern","match","validate"] |
| domains | ["regex-puzzles"] |
| license | Apache-2.0 |
Apply this skill when you need to construct or debug a regular expression for text matching, validation, or extraction. Covers: IPv4 addresses, email validation, phone extraction, password strength lookaheads, non-greedy quantifiers, named groups, backreferences, negated character classes, anchors, and Unicode properties.
(25[0-5]|2[0-4]\d|[01]?\d\d?) separated by \.[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%]) before .{8,}.*? instead of .* to match shortest possible(?P<name>...) syntax for readable captures(\w+) then match repeat with \1[^...] to exclude characters from a class^ and $ (with multiline flag if needed)\p{L} for any Unicode letterPattern: ^((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$
Pattern: ^(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*]).{8,}$
Pattern: \b(\w+)\s+\1\b
.* when you mean .*? — greedy matching causes over-capture. matches any character without escaping(a+)+) — causes catastrophic backtracking