|
Just Signed Up. Eregi Question...
I have an HTML page with blocks of text seperated by two "<hr><hr>" tags.
I am trying to display each "match" as a seperate array item like this:
$matches[6]
$matches[7]
$matches[8]
As of now, only [0] works, and it shows up as one huge block with all the matches! any ideas? preg_match perhaps???
--------------------------------------------
$html = file("test.html");
$string = implode("", $html);
eregi ("<HR><HR>.*<HR><HR>", $string, $matches);
echo "$matches[0]";
---------------------------------------------------
|