RegexPal

Test and debug regex patterns against sample text. Use when checking match groups, validating patterns, generating replacements, linting syntax.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "RegexPal" with this command: npx skills add xueyetianya/regexpal

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

CommandDescription
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

# 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.-]+'

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Kai Master Builder

Developer, Code, Engineer. Guide the Agent to build apps/features/goals efficiently and securely. Creates project plans, task lists, and provides building pr...

Registry SourceRecently Updated
1730Profile unavailable
Coding

aiXplain Agent Builder

Design and deploy aiXplain agents with conservative defaults, read-only discovery first, and explicit approval gates for higher-risk actions.

Registry SourceRecently Updated
450Profile unavailable
Coding

Uuid Generator

Generate UUIDs in versions v1, v4, and v5 with options for count, namespace, name, and output format.

Registry SourceRecently Updated
781Profile unavailable
Coding

Json Formatter Pro

All-in-one JSON toolkit — format, validate, query, minify, and extract data from JSON. Built-in JMESPath query, JSONPath support, syntax highlighting. 适合API调...

Registry SourceRecently Updated
1211Profile unavailable