I am trying to use eregi to parse through an HTML file. The problem is that it grabs too much. I want it to start grabbing at $startgrab and stop grabbing at the first occurrence of $stopgrab. Instead it stops grabbing at the last occurrence of $stopgrab.
$this->startpat = "<div id=\"expo\">";
$this->endpat = "[;]</div>";
eregi("($this->startpat)" . "(.*)" . "($this->endpat)", $this->inputdata, $this->out)