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
- Tap Copy prompt above.
- Replace the [bracketed] parts with your own details.
- Paste it into chatgpt, claude.