note 35164 rejected from function.ereg by pollita

From: Date: Thu, 21 Aug 2003 20:43:26 +0000
Subject: note 35164 rejected from function.ereg by pollita
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-54837@lists.php.net to get a copy of this message
Note Submitter: Igor ---- 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)

« previous php.notes (#54837) next »