"4 6" =~ m{
^
(?= .*? (\d) )
(?= .*? (??{ $1 - 2 }) )
}x;
Apparently, when the engine fails when (\d) matches 4, it ends up giving
up entirely, instead of backtracking (or forwardtracking) to allow (\d) to
match the 6.
Am I right, or am I crazy?
--
Jeff "japhy" Pinyan japhy@pobox.com http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for? <tenderpuss> why, yansliterate of course.
[ I'm looking for programming work. If you like my work, let me know. ]