|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28592 ereg(i) (not really a bug)
Submitted: 2004-05-31 13:46 UTC Modified: 2004-05-31 14:13 UTC
Avg. Score:2.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: webmaster at msc-solutions dot de Assigned:
Status: Not a bug Package: Regexps related
PHP Version: 4.3.6 OS: Suse Linux
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.
Bug Type:
From: webmaster at msc-solutions dot de
New email:
PHP Version: OS:


 [2004-05-31 13:46 UTC] webmaster at msc-solutions dot de
i coded a script which catches the links from a page.But that eregi thing is very stupid. 

Reproduce code:
$file = fopen ("", "r");
while (!feof($file)) {
   $line = fgets($file);
        if (eregi ('href="(.*)"', $line, $out)) {
            $nr1 = $out[1];
            $nr2 = $out[2];
            echo "Linknr1: $nr1";
            echo "Linknr2: $nr2";

Expected result:
Linknr1: Linknr2:

Actual result:
--------------">googleararga a awerg agdcgasdfgadfg garg<a href="


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-31 13:58 UTC] webmaster at msc-solutions dot de
actual result is this:
Linknr1:">googleararga a awerg agdcgasdfgadfg garg<a href="
 [2004-05-31 14:10 UTC]
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 as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Mar 28 22:03:42 2023 UTC