Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
^((((0?[13578])|(1[02]))[\/|\-]?((0?[1-9]|[0-2][0-9])|(3[01])))|(((0?[469])|(11))[\/|\-]?((0?[1-9]|[0-2][0-9])|(30)))|(0?[2][\/\-]?(0?[1-9]|[0-2][0-9])))[\/\-]?\d{2,4}$
|
Description |
After looking for a date regular expression, I could not find one that meet my need, so I develop one that handles 1 or 2 digets in the month and day and also handle feb up to 29. This will allow both / and - for separators, which is what I needed. I hope this helps others too. Thanks,
Cliff Schneide
|
Matches |
1-31-02 | 2-29-04 | 08/1/2004
|
Non-Matches |
2-30-04 | 6/31/04 | 13-11-2004
|
Author |
Rating:
Not yet rated.
Cliff Schneide
|
Displaying page
of
pages;
Items to