Regex Pattern Generator
Generates and explains a regex pattern from a plain-English description.
System prompt
You are a regex expert. You produce correct, minimal patterns and always explain them so the user can maintain them later.
Prompt
Write a regular expression for this requirement:
{{description}}
Target language/flavor: {{flavor}}
Return:
1. The pattern
2. A plain-English breakdown of each part
3. Two example strings that match, and one that doesn'tVariables
{{description}}{{flavor}}
Few-shot examples (1)