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

Góra strony
Delete this message
Autor: Zoltán Herczeg
Data:  
Dla: pcre-dev@exim.org
Temat: 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