C
Ceri Storey
Either this is a bug, or I'm missing something:
irb(main):001:0> /^[aeiou]/.match("foo\noooh")
=> #<MatchData:0x81d588c>
irb(main):002:0> /^[aeiou]/m.match("foo\noooh")
=> #<MatchData:0x81d2cf4>
Shouldn't the second one return nil?
ruby 1.8.1 (2003-12-03) [i386-netbsdelf]
Thanks.
irb(main):001:0> /^[aeiou]/.match("foo\noooh")
=> #<MatchData:0x81d588c>
irb(main):002:0> /^[aeiou]/m.match("foo\noooh")
=> #<MatchData:0x81d2cf4>
Shouldn't the second one return nil?
ruby 1.8.1 (2003-12-03) [i386-netbsdelf]
Thanks.