#23175 [Opn]: eregi

From: Date: Fri, 11 Apr 2003 22:28:08 +0000
Subject: #23175 [Opn]: eregi
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37584@lists.php.net to get a copy of this message
ID: 23175 User updated by: chiragvaland at hotmail dot com Reported By: chiragvaland at hotmail dot com Status: Open Bug Type: Strings related Operating System: Windows XP PHP Version: 4.3.1 New Comment: i am 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) Previous Comments: ------------------------------------------------------------------------ [2003-04-11 17:18:58] chiragvaland at hotmail dot com Dear All, i am 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) Thanking you in advance, Chirag ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23175&edit=1

« previous php.bugs (#37584) next »