Displaying page
of
pages;
Items to
Title |
Test
Details
ISO Date Format
|
Expression |
^(\d{4})\D?(0[1-9]|1[0-2])\D?([12]\d|0[1-9]|3[01])(\D?([01]\d|2[0-3])\D?([0-5]\d)\D?([0-5]\d)?)?$
|
Description |
Regex to match the ISO Date Format. The time part is optional, including the seconds, as are all of the delimiters (although they must be non-numeric). Each part of the date will be returned as a selection e.g. \1 will contain the Year, \2 will contain the Month.
|
Matches |
2006-12-31 17:58:00 | 20061231175800 | 2006-12-31
|
Non-Matches |
2006-13-36 25:61:62
|
Author |
Rating:
Paul Ward
|
Displaying page
of
pages;
Items to