Re: [pcre-dev] Assertions with quantifier behaviour is Perl

Top Page
Delete this message
Author: Herczeg Zoltán
Date:  
To: ND
CC: Pcre-dev
Subject: Re: [pcre-dev] Assertions with quantifier behaviour is Perl
Uh, that is bad for me. PCRE-sljit follows the PERL way, and not PCRE here... But both work in the same way without the \1 (and the position is properly recorded).

Regards,
Zoltan

ND <nadenj@???> írta:
>On 2011-05-02 15:48, Herczeg Zoltán wrote:>
>It is true, that you may have several forms to achive the same purpose, >
> but I would prefer a conditional block here since that would be much >
> more reasonable: (?(?=a(b)))>
>>
>

And then you meet another compatibility problem:>
PCRE unlike Perl don't capture subpatterns in assertions-conditions.>
Here is pcretest listing:>
>
>

PCRE version 8.11 2010-12-10>
/(?(?=a(b)).*d\1|.*d)/s>
abdb>
0: bd>
>

-- >
## List details at https://lists.exim.org/mailman/listinfo/pcre-dev