note 12287 deleted from function.eregi by jimw
| From: | jimw@php.net | Date: | Fri, 02 Nov 2001 02:04:41 +0000 |
| Subject: | note 12287 deleted from function.eregi by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-20229@lists.php.net to get a copy of this message | ||
Here's one I managed to eke out, it checks to see if a date is in the proper ####-##-## format
(it won't check to make sure it's a valid date, just that the format is ok):
eregi("^[0-9]{4}-[0-9]{2}-[0-9]{2}$",$date)
A really good article on regular expressions can be found at:
http://www.phpbuilder.com/columns/dario19990616.php3