Bug Tracker

Changes between Initial Version and Version 1 of Ticket #2682


Ignore:
Timestamp:
May 25, 2008, 7:37:50 AM (15 years ago)
Author:
joern
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2682 – Description

    initial v1  
    11I 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.
    22
     3{{{
    34ISO date
    45^(\d{4})\D?(0[1-9]|1[0-2])\D?([12]\d|0[1-9]|3[01])$
     
    1516ISO Date, time and offset (the works)
    1617^(\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}}}