in reply to Re: Regex bug in 5.10 (was: Using Look-ahead and Look-behind)
in thread Using Look-ahead and Look-behind

Note that using + instead * is not equivalent.

$ perl -e'$_ = "Hello"; print "<$1>\n" while /(?=(.*))/g;' <Hello> <ello> <llo> <lo> <o> <> $ perl -e'$_ = "Hello"; print "<$1>\n" while /(?=(.+))/g;' <Hello> <ello> <llo> <lo> <o>