On Thu, 2 May 2002, Fredrik Arild Takle wrote: > eregi("$start(.*)end", $rf, $my_var); > > And I want it to stop at the first presedence of $end, not the last (thats > what this is doing).
Try preg, which is faster and gives you more control (here the ? munificence operator). preg_match("/{$start}(.*?)end/", $rf, my_var); miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php