Regex Gen
Skill by lxgicstudios
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/lxgicstudios/regex-genRegex Gen
Generate regex patterns from plain English descriptions. Because nobody actually remembers regex syntax.
Quick Start
npx ai-regex "match email addresses"
What It Does
- Converts plain English to working regex
- Explains what each part of the pattern does
- Provides test cases for validation
- Supports common patterns out of the box
- Works for any programming language
Usage
# Generate regex from description
npx ai-regex "match phone numbers with optional country code"
# Get regex for URLs
npx ai-regex "validate URLs including localhost"
# Match dates
npx ai-regex "match dates in YYYY-MM-DD format"
Example Output
Pattern: ^[\w.-]+@[\w.-]+\.\w{2,}$
Explanation:
^ - Start of string
[\w.-]+ - One or more word chars, dots, or hyphens
@ - Literal @ symbol
...
Test cases: ✓ [email protected] ✓ [email protected]
Part of the LXGIC Dev Toolkit
One of 110+ free developer tools from LXGIC Studios. No paywalls, no sign-ups.
Find more:
- GitHub: https://github.com/lxgic-studios
- Twitter: https://x.com/lxgicstudios
- Substack: https://lxgicstudios.substack.com
- Website: https://lxgicstudios.com
License
MIT. Free forever.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-lxgicstudios-regex-gen": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
script-gen
Generate package.json scripts with AI. Use when setting up npm scripts.
email-template-gen
Generate responsive email templates. Use when building transactional emails.
branch-namer
Generate descriptive git branch names from plain English. Use when you need a branch name that follows conventions.
cloudflare-gen
Generate Cloudflare Workers configuration and code. Use when building on the edge.
adr-writer
Generate Architecture Decision Records with AI. Use when documenting technical decisions.