← Prompting Templates
Regex Helper
Build and explain a regular expression.
# Regex Helper
**Prompt**
> Write a regular expression that matches [pattern description] and does not match [counterexamples]. Provide the regex for [language or tool], an explanation, and five test strings.
**Fill in**
- Pattern
- Counterexamples
- Language
**Tips**
- Include real examples
- Ask for a simpler alternative if possible