From: Stephen White Date: 2001-06-06T00:27:01+09:00 Subject: [ruby-talk:16237] Re: String#scan strange behavior On Wed, 6 Jun 2001, Wayne Blair wrote: > aString="one two three" > matches = [] > regexp = /(\w)+/ # current scan would return [["e"], ["o"], ["e"]] > aString.simpleScan(regexp) # => ["one", "two", "three"] Already seems to be that way if you don't use sub-expressions. irb(main):006:0> "one two three".scan(/\w+/) ["one", "two", "three"] Works for me anyway. :) -- spwhite@chariot.net.au