note 35164 added to function.ereg

From: Date: Thu, 21 Aug 2003 18:16:30 +0000
Subject: note 35164 added to function.ereg
Groups: php.notes 
Request: Send a blank email to php-notes+get-54833@lists.php.net to get a copy of this message
Here is a more complex french date validator, can handle j/m/aaaa and jj/mm/aaaa formats (day (0)1-31, month (0)1-12 and year 9999) : ereg("^([1-9]|0[1-9]|[1-2][0-9]|3[0-1])/([1-9]|0[1-9] |1[0-2])/([0-9]{4}$)", $date) ---- Manual Page -- http://www.php.net/manual/en/function.ereg.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35164 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35164&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35164&report=yes

« previous php.notes (#54833) next »