[PHP4BETA] More On PREG/EREG/PCRE

From: Date: Wed, 26 May 1999 13:48:11 +0000
Subject: [PHP4BETA] More On PREG/EREG/PCRE
Groups: php.version4 
Request: Send a blank email to php-version4+get-1065@lists.php.net to get a copy of this message
As I see it we have two discussions in one: - which naming should be used - which default behaviour should be used as far as we are now - would the following be a solution: having three sets of *reg: oreg_match | oreg_replace |--> doing it the old way oreg_split | preg_match | preg_replace |--> doing it the perl way preg_split | ereg_match | aliasing to whatever was ereg_replace |--> chosen to be default at ereg_split | compile time ereg an alias to ereg_match split an alias to ereg_split This make it possible for ISPs to have a smooth transition from the old to the new behaviour - providing both functionalities. There will be a time where scripts can get fixed from ereg_* to oreg_* still providing the new functionality under preg_*. At one point they can make a switch and from then on ereg_* will behave like perl. Would this be a way to go? Boris -- PHP 4 Beta

« previous php.version4 (#1065) next »