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

Αρχική Σελίδα
Delete this message
Συντάκτης: Zoltán Herczeg
Ημερομηνία:  
Προς: pcre-dev@exim.org
Αντικείμενο: 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