#44062 [Opn]: Low limit in PCRE preg_match ?
| From: | felipe@php.net | Date: | Wed, 06 Feb 2008 14:41:03 +0000 |
| Subject: | #44062 [Opn]: Low limit in PCRE preg_match ? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-122036@lists.php.net to get a copy of this message | ||
ID: 44062
Updated by: felipe@php.net
Reported By: janko at ami dot cz
Status: Open
Bug Type: PCRE related
Operating System: Windows XP
PHP Version: 5.2.5
New Comment:
See bug#42649
Previous Comments:
------------------------------------------------------------------------
[2008-02-06 13:11:49] janko at ami dot cz
Description:
------------
Im will try match part of HTML page. Concretely table of fixtures.
URL is
http://www.eurofotbal.cz/ligue-1/2007-2008/vysledky-rozlosovani/?month=02
Here is code
$url =
"http://www.eurofotbal.cz/ligue-1/2007-2008/vysledky-rozlosovani/?month=02";
$content = file_get_contents($url);
preg_match('~<table cellspacing="0" cellpadding="0"
class="matches">(.+)</table>~Usi', $content, $out);
//print_r($out);
echo "<table border=1>";
echo $out[1];
echo "</table>";
Everything is OK, but when I want match all fixtures, result is empty.
URL is
http://www.eurofotbal.cz/ligue-1/2007-2008/vysledky-rozlosovani/?month=0
Structure is the same like previous example
Can you tell me where is error?
RJ
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44062&edit=1