Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
^(((0?[1-9]|[12]\d|3[01])\.(0[13578]|[13578]|1[02])\.((1[6-9]|[2-9]\d)\d{2}))|((0?[1-9]|[12]\d|30)\.(0[13456789]|[13456789]|1[012])\.((1[6-9]|[2-9]\d)\d{2}))|((0?[1-9]|1\d|2[0-8])\.0?2\.((1[6-9]|[2-9]\d)\d{2}))|(29\.0?2\.((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))$
|
Description |
I did not found a Regex for german date, so I created my own. This RE validate dates in the dd.MM.yyyy format with leap years 100% integrated valid years from 1600 to 9999. As usual, many tests have been made. I think this one should be fine.
|
Matches |
1.1.2004 | 01.01.2004 | 29.2.2004
|
Non-Matches |
1/1/2004 | 1-1-2004
|
Author |
Rating:
Fabian Moritz
|
Displaying page
of
pages;
Items to