http://qs1969.pair.com?node_id=565076


in reply to Re^2: Strange result from "abbbbbc" =~ /(b)*?(b*?)c/
in thread Strange result from "abbbbbc" =~ /(b)*?(b*?)c/

Perl 5.8.8 doesn't have this problem. Whatever it is, it appears to have been fixed. 5.6.1 is kind of "old".

Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart

Replies are listed 'Best First'.
Re^4: Strange result from "abbbbbc" =~ /(b)*?(b*?)c/
by ikegami (Patriarch) on Aug 01, 2006 at 20:44 UTC
    It appears to have been fixed in 5.8.0.
    $1 = '' (defined) $2 = 'bbbbb' @- = (1, 1, 1) @+ = (7, 1, 6)