Displaying page
of
pages;
Items to
Title |
Test
Details
Leap Year
|
Expression |
(15(8[48]|9[26]))|((1[6-9]|[2-9]\d)(0[48]|[13579][26]|[2468][048]))|(([2468][048]|16|3579[26])00)
|
Description |
Validates four-digit leap years after 1582 (when Pope Gregory XIII switched to the Gregorian calendar). The last recognized leap year is 9996, so no worries with the y3k bug.
|
Matches |
1584, 2000, 2048
|
Non-Matches |
1200, 1580, 1941, 1800
|
Author |
Rating:
Jon Gray
|
Displaying page
of
pages;
Items to