Re: [PHP4BETA] CVS update: php4/ext/pcre

From: Date: Tue, 25 May 1999 20:45:37 +0000
Subject: Re: [PHP4BETA] CVS update: php4/ext/pcre
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-1038@lists.php.net to get a copy of this message
> My vote is preg_match(), preg_replace(), preg_split(). These make the > most > sense to the eye when glancing at the code. pcre_* may not make much > sense > to someone who doesn't know what it means. > > I have a feeling that perl style regular expressions will be quite > popular > with PHP, and there wouldn't be much of a reason to go back to POSIX > regex > unless you didn't want to take the time to compile pcre into PHP4. > > We have done some preliminary testing and it looks as if pcre is > 2-4 times faster than the built in POSIX regex with equivalent > expressions. > preg_replace() will also take arrays as arguments. This sounds good to me. Given that we are going between major versions here, it is probably ok to change the semantics a bit. It sounds like we should even make pcre the default regex library if it really is 2-4 times faster. But we do still need the option of compiling in the Posix library for backward compatibility. -Rasmus -- PHP 4 Beta

« previous php.version4 (#1038) next »