I have written this leap year regex and checked it with the year 2099 and have gotten incorrect results. Here is my regex:
if((Year%4)==0 && (Year%100 != 0 || Year%400 == 0))
{
ISLEAPYEAR = 1;
}
# Regular expression check, checks each month individually, due to differences in numbers of...