Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
^[0-9]{4}-(((0[13578]|(10|12))-(0[1-9]|[1-2][0-9]|3[0-1]))|(02-(0[1-9]|[1-2][0-9]))|((0[469]|11)-(0[1-9]|[1-2][0-9]|30)))$
|
Description |
Matches the date format "YYYY-mm-dd" and also validates month and number of days in a month. All leap year dates "YYYY-02-29" passes trough. Could easily be changed to another format.
|
Matches |
2004-04-30 | 2004-02-29
|
Non-Matches |
2004-04-31 | 2004-02-30
|
Author |
Rating:
Johan Södercrantz
|
Displaying page
of
pages;
Items to