note 31173 rejected from function.eregi by alindeman
| From: | alindeman@php.net | Date: | Fri, 11 Apr 2003 22:03:06 +0000 |
| Subject: | note 31173 rejected from function.eregi by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-46528@lists.php.net to get a copy of this message | ||
trying to validate a UK post code ie. kt1 2ls
and used the following to do so
eregi("^([[:alnum:]]{3,4})+(| )+([[:alnum:]]{3,4})$"
where(| ) corresponds to the space between 2 alphanumeric items but this error message appears
Warning: eregi() [function.eregi]: REG_EMPTY
is there anyway to check for a space in the text entered? (only one space though)