note 50326 deleted from function.ereg by tularis

From: Date: Thu, 31 May 2007 13:25:44 +0000
Subject: note 50326 deleted from function.ereg by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-127077@lists.php.net to get a copy of this message
Note Submitter: ---- The date example above is still a little dodgey as this: (19[0-9]{2}|20[0-5]{2})-(0[0-9]|1[0-2])-([12][0-9]|3[01]) will allow invalid dates such as 1900-00-31 Just a small correction is needed (IMO), switching a 0 for a 1: (19[0-9]{2}|20[0-5]{2})-(0[1-9]|1[0-2])-([12][0-9]|3[01]) ^ Of course invalid dates such as 31st feb are still possible.

« previous php.notes (#127077) next »