Regex Builder & Tester
By @marco_sales ยท
29 likes4 forks0 comments
Description
Builds a regex from a plain-language spec, explains each part, and lists test strings that should and should not match.
Prompt
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 code generation prompts for related workflows.
Reviews
-
0 reviews