Re: Regex Libraries

From: Date: Mon, 21 Oct 2002 12:32:28 +0000
Subject: Re: Regex Libraries
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-89794@lists.php.net to get a copy of this message
On Mon, Oct 21, 2002 at 08:30:53AM -0400, Ilia A. wrote: > Currently PHP contains two bundled regular expression libraries, PECL and > regex. I am wondering if it would be a good idea to drop the old regex (dates > back to 1999) library and use only PECL. The advantage is performance, > cleaner code and a more flexible and more recent library. For the people who > still use ereg functions, we could create wrappers that would implement their > functionality using PECL and possibly add an E_NOTICE indicating that using > PECL function preg_* would be a better approach. $mail = str_replace("PECL", "PCRE", $mail); > Ilia Jan -- http://jan.kneschke.de - localizer, modlogan, pxtools mailto:jan@kneschke.de - Jan Kneschke

« previous php.dev (#89794) next »