From: Nobuyoshi Nakada Date: 2008-11-11T10:58:31+09:00 Subject: [ruby-core:19797] Re: [Feature #739] Regexp#match with position 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