Re: [pcre-dev] (*ACCEPT) in atomic group

Top Page
Delete this message
Author: Philip Hazel
Date:  
To: ND
CC: Pcre-dev
Subject: Re: [pcre-dev] (*ACCEPT) in atomic group
On Sat, 20 Mar 2010, ND wrote:

> PCRE 8.0
>
> Subject: (?>.(*ACCEPT))*?5
> Pattern: 2
> Match: PCRE_ERROR_NOMATCH
> Expected: 2
>
> if Subject isn't atomic group then result is equal to expected:
>
> Subject: (.(*ACCEPT))*?5
> Pattern: 2
> Match: 2
>
> Why?


Interestingly, Perl 5.11 behaves the same...

Perl 5.011003 Regular Expressions

  /(?>.(*ACCEPT))*?5/
      2
  No match


However, I still do think it's a bug.

Philip

--
Philip Hazel