|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-04-11 17:18 UTC] 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 03:00:02 2025 UTC |
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)