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

Page principale
Supprimer ce message
Auteur: Zoltán Herczeg
Date:  
À: pcre-dev@exim.org
Sujet: 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