note 51626 added to function.ereg

From: Date: Tue, 05 Apr 2005 22:35:12 +0000
Subject: note 51626 added to function.ereg
Groups: php.notes 
Request: Send a blank email to php-notes+get-87545@lists.php.net to get a copy of this message
I may be a little thick, but there seems to be a little problem with the year portion. (19[0-9]{2}|20[0-5]{2}) This covers 1900 - 1999 and then picks up with 2000 - 2055. Answer me this - what happens with 2006-01-01? Why would you limit the 21st century side to 0-5? I understand if you don't want future dates in there but do you really want to go back and edit your code every year until 2009 when you'll have to use 20[0-9]{2} anyway? ---- Manual Page -- http://www.php.net/manual/en/function.ereg.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51626 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51626&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51626&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51626&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51626&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51626&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51626&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#87545) next »