Mastering Regular expression writing
on Mixtral 8x22B
Stop guessing. See how professional prompt engineering transforms Mixtral 8x22B's output for specific technical tasks.
The "Vibe" Prompt
Optimized Version
Engineering Rationale
The optimized prompt leverages chain-of-thought by breaking down the complex task of email regex generation into smaller, manageable steps. It provides explicit constraints and expectations for each part of the email address (local part, '@', domain part, TLD), guiding the model towards a more accurate and robust solution. The 'Refine and Test' step encourages the model to internally validate its output against common and edge cases, mimicking a human problem-solving approach. This structured approach significantly reduces ambiguity and improves the likelihood of a high-quality output compared to the vague 'vibe_prompt'.
Ready to stop burning tokens?
Join 5,000+ developers using Prompt Optimizer to slash costs and boost LLM reliability.
Optimize My Prompts