← Back to skills
development
GAntigravity
Regex Builder
Build and test regular expressions with multi-language syntax support. Create complex patterns, validate against sample data, and explain regex in plain English.
Build, test, and understand regular expressions across multiple programming languages. Construct complex regex patterns, test them against sample data, translate patterns into plain-English explanations, and access a common-pattern library for frequently used validations.
regexpatternsvalidationparsing
Share:
Version 1.0.0Updated Jan 27, 2026
Capabilities
Build complex regex patterns
Test against sample data
Explain regex in plain English
Common-pattern library
Multi-language syntax support
Use cases
Data validation
Text parsing and extraction
Search and replace operations
Input sanitization
Log file analysis
Try it
Example prompts to use with this skill
Prompt
Create a regex pattern to validate email addresses
Output
Here's a regex pattern for email validation:
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
**Explanation:**
- `^` - Start of string
- `[a-zA-Z0-9._%+-]+` - One or more letters, numbers, or special chars (., _, %, +, -)
- `@` - Literal @ symbol
- `[a-zA-Z0-9.-]+` - Domain name with letters, numbers, dots, hyphens
- `\.` - Literal dot
- `[a-zA-Z]{2,}` - Top-level domain (2+ letters)
- `$` - End of string
**Test cases:**
✓ user@example.com
✓ john.doe+filter@company.co.uk
✗ invalid@
✗ @example.comPrompt
Extract all URLs from text using regex
Output
Pattern to extract URLs:
https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&\/\/=]*)
**Usage in JavaScript:**
const text = "Visit https://example.com or http://test.org";
const urlRegex = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&\/\/=]*)/g;
const urls = text.match(urlRegex);
console.log(urls); // ['https://example.com', 'http://test.org']
**Python:**
import re
text = "Visit https://example.com or http://test.org"
pattern = r'https?://(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)'
urls = re.findall(pattern, text)
print(urls)Add to your AI assistant
A downloadable file is not available for this skill yet.
Discussions
Sign in with GitHub to join the discussion.
Loading...