New

2,000+ fresh prompts added this week — grab the latest bundle for $47.99

Regex builder and explainer

Build a regular expression from examples, then get it explained piece by piece with the edge cases.

Recommended Tools

PROMPT

What this prompt does

  • Builds the expression from your real examples and counter-examples.
  • Explains every component so the expression is maintainable by someone else.
  • Supplies inputs that break it, which is where most regex bugs come from.

Tips for this prompt

  • Counter-examples matter more than examples. Give it the strings that must not match.
  • Always name the flavour – escaping rules differ enough to matter.
  • Take the simpler version seriously if this will live in code someone else maintains.

How to use the prompt

  • Copy the prompt and replace everything in curly braces with your own details.
  • Paste it into your AI tool of choice and send.
  • Ask a follow-up if you want the output in a different format.

Related prompts

  • Free

Build on-brand replies for your most common tickets, with placeholders for the personal detail.

Read prompt
  • Pro

Rewrite a hero section five ways, each led by a different value proposition, with rationale for each.

Read prompt
  • Pro

Reverse-engineer a documented voice guide from writing you already have, with do and do-not examples.

Read prompt
  • Starter

A four-touch follow-up sequence where each message adds something new rather than nudging again.

Read prompt