RE: [PHP-DEV] [PATCH] ereg to pcre conversion

2002-11-02 Thread Preston L. Bannister
. -Original Message- From: Markus Fischer [mailto:mfischer;guru.josefine.at] Sent: Friday, November 01, 2002 11:12 PM To: Ilia A. Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DEV] [PATCH] ereg to pcre conversion I somehow don't like the idea. Mostly because I fear we introduce some BC

Re: [PHP-DEV] [PATCH] ereg to pcre conversion

2002-11-01 Thread Sander Roobol
On Thu, Oct 31, 2002 at 02:47:27PM -0500, Ilia A. wrote: I would like to propose that we drop the old ereg library and use only a single regular expression library, PCRE. For BC purposes I've written a patch (see attached file), which emulates the old ereg_* functions for people who still

Re: [PHP-DEV] [PATCH] ereg to pcre conversion

2002-11-01 Thread Jani Taskinen
On Fri, 1 Nov 2002, Sander Roobol wrote: On Thu, Oct 31, 2002 at 02:47:27PM -0500, Ilia A. wrote: I would like to propose that we drop the old ereg library and use only a single regular expression library, PCRE. For BC purposes I've written a patch (see attached file), which emulates the old

Re: [PHP-DEV] [PATCH] ereg to pcre conversion

2002-11-01 Thread Stig S. Bakken
On Fri, 2002-11-01 at 18:28, Jani Taskinen wrote: On Fri, 1 Nov 2002, Sander Roobol wrote: On Thu, Oct 31, 2002 at 02:47:27PM -0500, Ilia A. wrote: I would like to propose that we drop the old ereg library and use only a single regular expression library, PCRE. For BC purposes I've written

Re: [PHP-DEV] [PATCH] ereg to pcre conversion

2002-11-01 Thread Markus Fischer
I somehow don't like the idea. Mostly because I fear we introduce some BC change regarding to the ereg* functionality we yet do not forsee which brings us in the end more trouble (i.e. use complaining) then it's really worth. Just let ereg* functions stay where they are, if

[PHP-DEV] [PATCH] ereg to pcre conversion

2002-10-31 Thread Ilia A.
Currently PHP ships with two regular expression libraries that are both installed by default, PCRE regex. The regex library that is responsible for ereg_* functions is fairly old and offers a very limited functionality compared to the PCRE library. In most cases the PCRE functions are also

Re: [PHP-DEV] [PATCH] ereg to pcre conversion

2002-10-31 Thread Adam Maccabee Trachtenberg
So you're planning on converting POSIX regexen to PCRE so people don't need to worry about PCRE metacharacters that are POSIX literals? Seems tricky. (e.g. is \w a backslash and a w or a word character? what about search patterns of 10 instead of 10 they have different meanings in egrep(), you'll

Re: [PHP-DEV] [PATCH] ereg to pcre conversion

2002-10-31 Thread Ilia A.
On October 31, 2002 02:57 pm, Adam Maccabee Trachtenberg wrote: So you're planning on converting POSIX regexen to PCRE so people don't need to worry about PCRE metacharacters that are POSIX literals? Seems tricky. (e.g. is \w a backslash and a w or a word character? what about search patterns

Re: [PHP-DEV] [PATCH] ereg to pcre conversion

2002-10-31 Thread Moriyoshi Koizumi
Just FYI: Recently I found that the result of following code differs by ereg_replace() and preg_replace(). ?php $str = abcde; var_dump(ereg_replace(, a, $str)); var_dump(preg_replace(//, a, $str)); ? Hmm... there might be other trivial BC problems apart from regex spec differences, however the

Re: [PHP-DEV] [PATCH] ereg to pcre conversion

2002-10-31 Thread Ori Staub
scripts. Ori - Original Message - From: Ilia A. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 31, 2002 12:47 PM Subject: [PHP-DEV] [PATCH] ereg to pcre conversion Currently PHP ships with two regular expression libraries that are both installed by default, PCRE regex

Re: [PHP-DEV] [PATCH] ereg to pcre conversion

2002-10-31 Thread Ilia A.
PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 31, 2002 12:47 PM Subject: [PHP-DEV] [PATCH] ereg to pcre conversion Currently PHP ships with two regular expression libraries that are both installed by default, PCRE regex. The regex library that is responsible for ereg_