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

2002-11-02 Thread Preston L. Bannister
to others. -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 in

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 peo

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'v

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 th

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-10-31 Thread Ilia A.
gt; - 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 librari

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

2002-10-31 Thread Ori Staub
mark 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

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(). Hmm... there might be other trivial BC problems apart from regex spec differences, however the ereg_replace() behaviour appears somewhat strange to me. Moriyoshi "Ilia A." <[EMAIL PR

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 pa

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(), yo

[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 muc