Re: [pcre-dev] [Bug 1303] New: Recursion and greedy matching

Top Page
Delete this message
Author: Philip Hazel
Date:  
To: 1303
CC: pcre-dev
Subject: Re: [pcre-dev] [Bug 1303] New: Recursion and greedy matching
On Thu, 4 Oct 2012, Jille Timmermans wrote:

> When I make the recursive-backreference (?R) optional (with ?) it doesn't match
> the data to its full extent.
>
> I've tested this with pcretest 7.7 and PHP 5.4.7 (uses pcre 8.12).


I have just tested it with Perl 5.12.4 and 5.15.3 and in both cases the
same result as PCRE (latest code) is obtained. I have not yet had time
to work out why, but the compatibility with Perl suggests that it is a
"feature" rather than a bug. I'll try to dig deeper soon and post the
result.

Philip

--
Philip Hazel