in reply to Re: look-ahead greed changed between perl releases?
in thread look-ahead greed changed between perl releases?

Another variation:

c:\@Work\Perl>perl -wMstrict -le "print $]; ;; my $s = 'ABCDEF'; ;; my @captures = $s =~ m{ (?= (.{3,})) }xmsg; printf qq{'$_' } for @captures; " 5.014004 'ABCDEF' 'BCDEF' 'CDEF' 'DEF'

Interestingly, this particular example works exactly the same for all the regex expressions  (.{3,}) and  (.+) and  (.{1,}) on all the Perl versions I have in captivity (all Win32): ActiveState 5.8.9 and Strawberries 5.10.1.5, 5.12.3.0 and 5.14.4.1.
(Of course, output differs between  (.{3,}) and  (.{1,}) but the latter and  (.+) are the same.)