#26850 [Opn->Bgs]: eregi gave different result
| From: | eru@php.net | Date: | Fri, 09 Jan 2004 10:19:37 +0000 |
| Subject: | #26850 [Opn->Bgs]: eregi gave different result | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-24927@lists.php.net to get a copy of this message | ||
ID: 26850
Updated by: eru@php.net
Reported By: mobanajp at yahoo dot co dot jp
-Status: Open
+Status: Bogus
Bug Type: PECL related
Operating System: WinXP
PHP Version: 4.3.4
New Comment:
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.
Your regexp isn't good enough, nothing to do with eregi.
Previous Comments:
------------------------------------------------------------------------
[2004-01-09 04:46:12] mobanajp at yahoo dot co dot jp
Description:
------------
pattern match gave different result depend on the given string.
Reproduce code:
---------------
eregi("<a href=\"(.*)\">","<a
href=\"link1\">#someotherwords#link2\">",$link);
Expected result:
----------------
link1
Actual result:
--------------
link1">#someotherwords#link2 but sometime link1, depends on the URL &
words between it
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26850&edit=1