Advanced
Complex Regex Engineering
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.