#32458 [Opn]: preg_split return only offsets
| From: | pornel at despammed dot com | Date: | Fri, 25 Mar 2005 20:45:08 +0000 |
| Subject: | #32458 [Opn]: preg_split return only offsets | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-75869@lists.php.net to get a copy of this message | ||
ID: 32458
User updated by: pornel at despammed dot com
Reported By: pornel at despammed dot com
Status: Open
Bug Type: Feature/Change Request
Operating System: all
PHP Version: Irrelevant
New Comment:
New parameter, "start at", that causes command to ignore number of
initial chars, would nicely complement this feature.
Previous Comments:
------------------------------------------------------------------------
[2005-03-25 21:38:11] pornel at despammed dot com
Description:
------------
PREG_SPLIT_OFFSET_CAPTURE is useful for creation of custom parsers -
allows to find positions of matching strings.
If offset is known - returned string is not needed, as it might be
accessed in various other ways.
I suggest adding flag PREG_SPLIT_OFFSETS_ONLY (or
PREG_SPLIT_NO_CAPTURE) that would (hopefully) boost performance when
preg_split is used to tokenize long strings.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32458&edit=1