note 77580 added to function.preg-split
| From: | crispytwo at yahoo dot com | Date: | Tue, 04 Sep 2007 20:29:47 +0000 |
| Subject: | note 77580 added to function.preg-split | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-130181@lists.php.net to get a copy of this message | ||
I was having trouble getting the PREG_SPLIT_DELIM_CAPTURE flag to work because I missed reading the
"parenthesized expression" in the documentation :-(
So the pattern should look like:
/(A)/
not just
/A/
and it works as described/expected.
----
Server IP: 216.235.15.211
Probable Submitter: 139.142.50.186
----
Manual Page -- http://www.php.net/manual/en/function.preg-split.php
Edit -- https://master.php.net/note/edit/77580
Del: integrated -- https://master.php.net/note/delete/77580/integrated
Del: useless -- https://master.php.net/note/delete/77580/useless
Del: bad code -- https://master.php.net/note/delete/77580/bad+code
Del: spam -- https://master.php.net/note/delete/77580/spam
Del: non-english -- https://master.php.net/note/delete/77580/non-english
Del: in docs -- https://master.php.net/note/delete/77580/in+docs
Del: other reasons-- https://master.php.net/note/delete/77580
Reject -- https://master.php.net/note/reject/77580
Search -- https://master.php.net/manage/user-notes.php