Regex Builder & Tester
build_regexGenerate regular expressions from natural language descriptions for emails, URLs, phones, dates, IPs, and 15+ patterns. Get patterns with JS/Python/TS code snippets and optional test results.
Instructions
Build and test regular expressions from natural language descriptions. Supports emails, URLs, phones, dates, IPs, colors, UUIDs, and 15+ more patterns. Returns the pattern, code snippets in JS/Python/TS, and optional test results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | Yes | What to match (e.g., 'email addresses', 'hex color codes', 'semantic versions') | |
| testStrings | No | Optional strings to test the regex against | |
| flags | No | Regex flags (default: 'g') | g |