The prompt
Write a regex that matches [WHAT TO MATCH] and does NOT match [WHAT TO EXCLUDE]. Show the pattern, explain each part, and give me 3 test strings that should match and 3 that shouldn't. Flavor: [JavaScript / Python / PCRE].

More prompts in this discipline

Collected from the Notion template. Want to share one of yours? Submit a prompt.