Coding
Regex with receipts
Regexes are write-only without tests. This makes the model prove its pattern works.
Write a regex that: [DESCRIBE WHAT TO MATCH] Flavor: [JavaScript / Python / PCRE] Return: 1. The regex 2. A plain-English breakdown of each part 3. 5 strings it SHOULD match and 5 it should NOT — verify each one against your own pattern and mark pass/fail honestly 4. Known limitations
Works with Claude · ChatGPT · Gemini — replace the [bracketed] parts with your own details, keep the structure.
Want a new tested prompt every week? The PromptAI briefing delivers the AI story that matters, the paper everyone's citing and a prompt worth stealing — subscribe free →