From: botp Date: 2010-03-02T14:57:32+09:00 Subject: Re: MatchData captures... expected two items, but got one? On Tue, Mar 2, 2010 at 12:48 PM, Sarah Allen wrote: > ..just need to be able to explain why match doesn't seem to work the way > the documentation says it should -- at least by my reading of it. your match/regex captured only one.. try eg, > m = test.match /(word.).*?(word.)/ => # > m.captures => ["word1", "word2"]