Re: Add support for PCRE marks
| From: | Josh Davis | Date: | Tue, 18 Mar 2014 06:23:12 +0000 |
| Subject: | Re: Add support for PCRE marks | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-73259@lists.php.net to get a copy of this message | ||
On 28 February 2014 21:37, Nikita Popov <nikita.ppv@gmail.com> wrote:
>
> I wrote a patch to expose PCRE mark information in PHP, see
> https://github.com/php/php-src/pull/609/files. The last passed
> *MARK will
> be added to the $matches array under key "MARK". If you don't use marks
> everything stays exactly the same.
Hi,
Have you considered using a key that cannot be mistaken for (or
interfere with) a named capture called "MARK"? How about "*MARK"?