Re: eregi

From: Date: Thu, 02 May 2002 22:04:34 +0000
Subject: Re: eregi
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-95777@lists.php.net to get a copy of this message
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

« previous php.general (#95777) next »