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