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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: chiragvaland at hotmail dot com
New email:
PHP Version: OS:

 

 [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-2023 The PHP Group
All rights reserved.
Last updated: Sun May 28 11:03:41 2023 UTC