* Thus wrote Tom Rogers ([EMAIL PROTECTED]): > Hi, > > Thursday, April 15, 2004, 8:56:05 AM, you wrote: > RB> At 15:02 14-04-2004, Tom Rogers wrote: >>... >> > RB> preg_replace() and ereg_replace(), so it's a bit hard to get a quick > RB> glimpse of how big the difference really is ... (or for the _match() ones > RB> for that matter)... > > RB> But thx ... looks useful :) > > > Yes it is based on perl regular expressions which are pretty close to > posix, close enough for simple stuff anyway. > preg_replace is quite a bit faster than ereg_replace, I know preg_* > functions keep a cache of expressions which can speed up repetitive > uses. Not sure about ereg functions though.
>From all benchmarks I've seen pcre beats posix hands down, not to mention that pcre is much more powerful. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php