kjana / dm4lab.to (YANAGAWA Kazuhisa) writes:

> Then you can use String#index(regexp, offset).  Eg:

nobu.nokada / softhome.net writes:
> Or you can use String#index:

Thanks to both of you.  Good tip!  Then my proposed
Regexp.match_offset method is just this:

    class Regexp
      def match_offset(str, offset)
        str.index(self, offset)
        $~
      end
    end

-- 
matt