Dennis Decker Jensen wrote:
> Felix von Delius wrote:
> #  much shorter and readable like this:
> #
> #    /^(\d+),(\d+)$/.match(line) do | first, second |
> #      print ">>#{first} >>#{second}\n"
> #    end


After executing this, above code is possible:

class Regexp
  def match(str)
    str.scan(self) {|*a| yield *a}
  end
end


Regards

Michael

 
-- 
Michael Neumann
merlin.zwo InfoDesign GmbH
http://www.merlin-zwo.de