php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26850 eregi gave different result
Submitted: 2004-01-09 04:46 UTC Modified: 2010-12-29 14:10 UTC
From: mobanajp at yahoo dot co dot jp Assigned:
Status: Not a bug Package: Regexps related
PHP Version: 4.3.4 OS: WinXP
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: mobanajp at yahoo dot co dot jp
New email:
PHP Version: OS:

 

 [2004-01-09 04:46 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-09 05:19 UTC] eru@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.

Your regexp isn\'t good enough, nothing to do with eregi.

 [2010-12-29 14:10 UTC] jani@php.net
-Package: PECL related +Package: Regexps related
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 05:01:33 2024 UTC