🏠 Home
Benchmark Hub
📊 All Benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List Applications 🎨 Creative Free Pages 🎯 FSACB - Ultimate Showcase 🌍 Translation Benchmark
Models
🏆 Top 10 Models 🆓 Free Models 📋 All Models ⚙️ Kilo Code
Resources
💬 Prompts Library 📖 AI Glossary 🔗 Useful Links
Advanced

Complex Regex Engineering

#regex #pattern-matching #validation

Construct a regular expression for a specific custom data validation rule.

Create a single regular expression that validates a specific custom ID format: The ID must start with 3 uppercase letters, followed by a hyphen, then 5 digits where the sum of the digits is even, followed by a special character from the set !@#$, and ending with either 'X' or 'Y'. Provide a breakdown explanation for every capture group and token used in the pattern.