Re: [pcre-dev] Remove some restrictions of lookbehind assert…

Top Page
Delete this message
Author: Zoltán Herczeg
Date:  
To: pcre-dev@exim.org
Subject: Re: [pcre-dev] Remove some restrictions of lookbehind assertions
> > You are right. Since you can put it into a group, it is not possible
> > to prevent repetitions. However the rule that empty matches break
> > (non-fixed) loops may solve this problem.
> ... but it's not an empty match.


If we consider the following pattern:
/(*napla:a|a)+/

is the same as:
/(?:(*napla:a|a))+/

Then we have an empty match if I understand  correctly the behavior of this new construct.

Regards,
Zoltan