On Sunday 25 November 2001 10:34 pm, Brent Dax wrote:
> Perl 5's REs will always appear faster because Perl 5 has an
> intelligent, optimizing regex compiler.  For example, take the following
> simple regex:
>
>       /a+bc+/
>
> pregcomp will optimize that by searching for a 'b' and working outwards
> both ways from there.  (Actually, it might search for 'abc' and work
> from there; I'm not really sure.)  

No, it doesn't.  (At least not in any production version of Perl.)  It 
proceeds dumbly from left to right.  The crux of the other email I sent you.

-- 
Bryan C. Warnock
[EMAIL PROTECTED]

Reply via email to