Description
Test and debug regular expressions with match highlighting, capture group extraction, and a library of common patterns.
Trigger
/regexcommand- User needs to test regex
- User wants pattern matching help
Usage
# Test pattern
python scripts/regex_tester.py "\\d+" "abc123def456"
# Show capture groups
python scripts/regex_tester.py "(\\w+)@(\\w+)" "user@domain" --groups
Find all matches
python scripts/regex_tester.py "\b\w{4}\b" "The quick brown fox" --all
Use common patternpython scripts/regex_tester.py --pattern email "Contact: test@example.com"
## Tags
`regex`, `pattern`, `match`, `test`, `text`
## Compatibility
- Codex: ✅
- Claude Code: ✅