#31631 [Opn->Fbk]: Long ereg results failure
| From: | tony2001@php.net | Date: | Thu, 20 Jan 2005 22:55:35 +0000 |
| Subject: | #31631 [Opn->Fbk]: Long ereg results failure | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-72546@lists.php.net to get a copy of this message | ||
ID: 31631
Updated by: tony2001@php.net
Reported By: dux at uol dot com dot ar
-Status: Open
+Status: Feedback
-Bug Type: POSIX related
+Bug Type: Regexps related
Operating System: Windows 2k
PHP Version: 5.0.1
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
Previous Comments:
------------------------------------------------------------------------
[2005-01-20 23:53:02] dux at uol dot com dot ar
Description:
------------
the regex dont find big text matches.
i tried to extract tables from a website, and I could extract small
tables, but with big ones (40-50 complex rows) it said that nothing was
found (missmatch).
i hardcode a website where it crashes, so you can check it for
yourselves.
i tested the code handcutting text from the tables to make them smaller
and them was recogniced succefully.
Reproduce code:
---------------
$file =
'http://ffvault.ign.com/View.php?view=Locations.List&view_page=1';
$content = file_get_contents($file);
// here i try to found a table
$found = ereg
('<table>[s|^s|'."\n".'|'."\r".']</table>',$html,$regex);
echo $regex[0];
Expected result:
----------------
see just a table
Actual result:
--------------
the table is not found
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31631&edit=1