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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 04:01:30 2024 UTC