note 50862 added to function.ereg

From: Date: Fri, 11 Mar 2005 19:47:43 +0000
Subject: note 50862 added to function.ereg
Groups: php.notes 
Request: Send a blank email to php-notes+get-86285@lists.php.net to get a copy of this message
Reaction to: (19[0-9]{2}|20[0-5]{2})-(0[0-9]|1[0-2])-([12][0-9]|3[01]) --> There is more problems than just "this will validate 2005-02-31". The worse problem is that it WON'T validate 2001-01-01... (19[0-9]{2}|200[0-5]{1})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01]) (Note that "00" is no longer possible for days and months, while allowing for 01..09...) Still, it doesn't protect against non-existent dates. ---- Manual Page -- http://www.php.net/manual/en/function.ereg.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50862 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50862&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50862&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50862&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50862&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50862&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50862&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#86285) next »