Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Strange result from "abbbbbc" =~ /(b)*?(b*?)c/

by japhy (Canon)
on Aug 01, 2006 at 20:37 UTC ( #565073=note: print w/replies, xml ) Need Help??


in reply to Strange result from "abbbbbc" =~ /(b)*?(b*?)c/

What version of Perl gave you such things? I get $1 = undef, $2 = "bbbb".

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
  • Comment on Re: Strange result from "abbbbbc" =~ /(b)*?(b*?)c/

Replies are listed 'Best First'.
Re^2: Strange result from "abbbbbc" =~ /(b)*?(b*?)c/
by ikegami (Patriarch) on Aug 01, 2006 at 20:39 UTC

    I can reproduce his results with ActivePerl 5.6.1

    $1 = 'a' $2 = 'bbbbb' @- = (1, 0, 1) @+ = (7, 1, 6)
      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
        It appears to have been fixed in 5.8.0.
        $1 = '' (defined) $2 = 'bbbbb' @- = (1, 1, 1) @+ = (7, 1, 6)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://565073]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2022-05-25 17:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (90 votes). Check out past polls.

    Notices?