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
> as normal groups, not as assertion groups. What happens when they are
> repeated must be defined - or maybe they should not be allowed to
> repeat, because once again that might be an easy way to infinite loops.


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.

I start to understand why perl choose to implement assertions as atomic.

Regards,
Zoltan