Changes between Initial Version and Version 1 of Ticket #2682
- Timestamp:
- May 25, 2008, 7:37:50 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2682 – Description
initial v1 1 1 I have a few suggestions for enhancing the ISO date and time RegEx expressions. I modified a few examples I found on http://regexlib.com. The current dateISO validator allows nonsensical dates like 2008-67-87. 2 2 3 {{{ 3 4 ISO date 4 5 ^(\d{4})\D?(0[1-9]|1[0-2])\D?([12]\d|0[1-9]|3[01])$ … … 15 16 ISO Date, time and offset (the works) 16 17 ^(\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)?\D?(\d{3})?([zZ]|([\+-])([01]\d|2[0-3])\D?([0-5]\d)?)?)?$ 18 }}}