Hi,

At Tue, 11 Nov 2008 06:42:08 +0900,
Jeremy Stephens wrote in [ruby-core:19785]:
> I suppose you could either create an attribute reader in
> MatchData for position, or maybe Regexp#match could return an
> array of length 2, where the first element is the position,
> and the second is the MatchData object.

MatchData#begin.

  $ ruby -e 'm=/b/.match("abc"); p m.begin(0)'
  1

-- 
Nobu Nakada