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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"description": "<description>"
},
"name": "build_regex"
}
}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 |