[PHP-DEV] Re: [PATCH] Allow preg_split to capture offsets

2002-05-23 Thread David Brown
On Thu, May 23, 2002 at 12:28:02PM -0500, Andrei Zmievski wrote: > David, > > > Enclosed is a patch to allow PCRE's preg_split to return an array of > > (match, offset) pairs, if PREG_SPLIT_OFFSET_CAPTURE is or'd into the > > flags parameter. Submitted for inclusion, rejection, extensive flaming,

[PHP-DEV] Re: [PATCH] Allow preg_split to capture offsets

2002-05-23 Thread Andrei Zmievski
David, > Enclosed is a patch to allow PCRE's preg_split to return an array of > (match, offset) pairs, if PREG_SPLIT_OFFSET_CAPTURE is or'd into the > flags parameter. Submitted for inclusion, rejection, extensive flaming, > or suggestions. :) I've applied the patch with some modifications. Nota