From: matz@... (Yukihiro Matsumoto) Date: 2003-04-01T15:29:17+09:00 Subject: Re: Change to /.../.match("foo") behaviour in 1.6.8? Hi, In message "Re: Change to /.../.match("foo") behaviour in 1.6.8?" on 03/04/01, dblack@superlink.net writes: |I'm getting confused.... It looks like 1.8 goes back to the 1.4 |behavior -- am I right about that? | | candle:~$ ruby -ve 'a, b = /(.)/.match("ab"); p a,b' | ruby 1.8.0 (2003-03-03) [i686-linux] | "a" | "a" It was a bug to be fixed. |and for the other behavior, the * doesn't seem to change it (in this |1.6.8 example): It should work on the latest. % ruby -ve 'a, b = /(.)/.match("ab"); p a,b' ruby 1.8.0 (2003-03-28) [i686-linux] # nil % ruby -ve 'a, b = */(.)/.match("ab"); p a,b' ruby 1.8.0 (2003-03-28) [i686-linux] "a" "a" Sorry, I forget about 1.6.8 already. matz.