On 6/3/07, Nobuyoshi Nakada <nobu / ruby-lang.org> wrote: > Hi, > > At Sun, 3 Jun 2007 13:56:05 +0900, > Patrick Hurley wrote in [ruby-talk:254059]: > > I think he wanted MatchData objects. The String#index method returns > > the index (numeric position of the match). But if all you want are > > captures, then index is a good solution. > > String#index also sets $~. > > -- > Nobu Nakada > > I should have know to never question Nobu Nakada :-), I always forget about those variables. Thanks pth