Re: [PHP-DEV] PHP 4.0 Bug #9029: preg_split inconsistency

2001-01-31 Thread Wico de Leeuw
you gotta escape the escapes $b = preg_split('/([\\(\\)])/', $a); Greetz, Wico At 13:13 31-1-01 +, [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] Operating system: OpenBSD 2.8 PHP version: 4.0.4pl1 PHP Bug Type: PCRE related Bug description: preg_split

Re: [PHP-DEV] PHP 4.0 Bug #9029: preg_split inconsistency

2001-01-31 Thread Andrei Zmievski
On Wed, 31 Jan 2001, [EMAIL PROTECTED] wrote: The brackets aren't captured, which makes the Scheme parsing a bit difficult :-) There are other ways to do this, of course, but the preg_split() would be the simplest and the most efficient way to do it, as far as we can see. I noticed that

Re: [PHP-DEV] PHP 4.0 Bug #9029: preg_split inconsistency

2001-01-31 Thread Anil Madhavapeddy
Quoting Andrei Zmievski [EMAIL PROTECTED]: I could add this functionality but I am not sure if it would break people's scripts because they used parentheses without expecting to receive captured delimiters. What does everyone think? Should it be that way by default or should we have another