Description
Builds a regex from a plain-language spec, explains each part, and lists test strings that should and should not match.
Prompt
38 words
Write a regex for this requirement: {{requirement}}. Provide: the pattern, a breakdown of each component, 5 strings that should match, and 5 that should NOT. Note any edge cases the pattern deliberately ignores. Keep it readable over clever.How to use
Copy the prompt and paste it into your AI tool of choice. It works best with claude-sonnet-4. See more prompts in Coding for related workflows.
Reviews
Loading reviews