regexpal
SolidTest and debug regex patterns against sample text. Use when checking match groups, validating patterns, generating replacements, linting syntax.
Code & Development 3,964 stars
1088 forks Updated 2 months ago MIT
Install
Quality Score: 92/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# RegexPal
A real regex tester and toolkit for the terminal. Test patterns against text, find matches in files with highlighted output, perform replacements, extract capturing groups, and get human-readable explanations of regex syntax.
## Commands
| Command | Description |
|---------|-------------|
| `regexpal test <pattern> <text>` | Test if a regex matches text — reports full match, partial match, groups, and named groups |
| `regexpal match <pattern> <file>` | Find all matches in a file — highlights matches in red, shows line numbers and match count |
| `regexpal replace <pattern> <replacement> <file>` | Replace all matches in a file and output to stdout. Supports backreferences (`\1`, `\2`) |
| `regexpal extract <pattern> <file>` | Extract capturing groups from all matches in a file — shows each group value per match |
| `regexpal explain <pattern>` | Break down a regex pattern — lists character classes, groups, tokens, and quantifiers |
## Requirements
- `python3` (uses `re` stdlib module)
## Examples
```bash
# Test a pattern
regexpal test '^\d{3}-\d{4}$' '123-4567'
# Find emails in a file
regexpal match '\w+@[\w.-]+' contacts.txt
# Replace version numbers
regexpal replace 'v(\d+)\.(\d+)' 'v\1.$((\\2+1))' changelog.md
# Extract domain parts from emails
regexpal extract '(\w+)@(\w+\.\w+)' emails.txt
# Understand a complex pattern
regexpal explain '(?<=@)[\w.-]+'
```
Details
- Author
- openclaw
- Repository
- openclaw/skills
- Created
- 5 months ago
- Last Updated
- 2 months ago
- Language
- Python
- License
- MIT
Similar Skills
Semantically similar based on skill content — not just same category
Code & Development Listed
regexpal
Test and debug regex patterns against sample text. Use when checking match groups, validating patterns, generating replacements, linting syntax.
9 Updated 1 months ago
bytesagain AI & Automation Listed
regex-buddy
【正则表达式】自然语言描述生成正则 + 逐段解释 + 测试用例。触发时机:用户说"写个正则"、"正则匹配"、"regex"、"解释正则"时。
0 Updated 2 days ago
afine907 Data & Documents Listed
pattern-detection
Detect patterns, anomalies, and trends in code and data. Use when identifying code smells, finding security vulnerabilities, or discovering recurring patterns. Handles regex patterns, AST analysis, and statistical anomaly detection.
353 Updated today
aiskillstore