From: Nobuyoshi Nakada Date: 2007-06-03T14:30:46+09:00 Subject: Re: No way of looking for a regrexp match starting from a particular point in a string? 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