Regex builder

The exact pattern you need.

chatgptclaude
Act as a regex expert. I need a regular expression that [matches what], in [language/flavor]. Give the pattern, explain each part in plain language, show 3 matching and 2 non-matching examples, and note edge cases or catastrophic-backtracking risks. Offer a simpler alternative if one exists.

How to use this prompt

  1. Tap Copy prompt above.
  2. Replace the [bracketed] parts with your own details.
  3. Paste it into chatgpt, claude.