#23175 [NEW]: eregi
| From: | chiragvaland at hotmail dot com | Date: | Fri, 11 Apr 2003 22:18:58 +0000 |
| Subject: | #23175 [NEW]: eregi | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-37583@lists.php.net to get a copy of this message | ||
From: chiragvaland at hotmail dot com
Operating system: Windows XP
PHP version: 4.3.1
PHP Bug Type: Strings related
Bug description: eregi
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 bug report at http://bugs.php.net/?id=23175&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23175&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23175&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23175&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23175&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23175&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23175&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23175&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23175&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23175&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23175&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23175&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23175&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23175&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23175&r=gnused