Re: ereg

From: Date: Mon, 11 Feb 2002 21:08:48 +0000
Subject: Re: ereg
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-84311@lists.php.net to get a copy of this message
On Mon, 2002-02-11 at 04:02, Christoph Starkmann wrote: > Hi there! Is there any mean to tell PHP to use ereg etc. greedy? > > Thanx, > > Kiko The ereg*() functions do not provide this; try the preg_*() functions. They're faster anyway. :) The syntax for the preg_*() functions is also much more similar to perl's, in that you can invert a match's greediness by sticking a '?' after it in the pattern. See: http://www.php.net/manual/en/ref.pcre.php for more information on using these (including syntax). Hope this helps, Torben -- Torben Wilson <torben@php.net> http://www.thebuttlesschaps.com http://www.hybrid17.com http://www.inflatableeye.com +1.604.709.0506

« previous php.general (#84311) next »