Hi-
I'm trying to parse a web page with eregi, but the pattern I'm looking for shows up more than once on a page.
For example, if I try this...
if (eregi("(/test/science/subject=.\">)(.)(</a></font>)", $contents, $out))
{ echo $out[2]; }
...and the pattern is found multiple times, echoing $out[2] echos the last instance when what I need is the first instance.
Is there some way around this?
Thanks.