php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23175 eregi
Submitted: 2003-04-11 17:18 UTC Modified: 2003-04-11 19:20 UTC
From: chiragvaland at hotmail dot com Assigned:
Status: Not a bug Package: Strings related
PHP Version: 4.3.1 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
45 + 35 = ?
Subscribe to this entry?

 
 [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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-11 17:28 UTC] chiragvaland at hotmail dot com
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)
 [2003-04-11 19:20 UTC] magnus@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Please ask support questions in php-general mailinglist.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 19:01:28 2024 UTC