From: Robert Klemme Date: 2010-03-02T20:42:13+09:00 Subject: Re: MatchData captures... expected two items, but got one? 2010/3/2 Sarah Allen : > Josh Cheek wrote: >>> Not sure what the answer is with match, I usually use scan like this: >> >> test = "word1 foo word2" >> m = test.scan(/word./) >> m # => ["word1", "word2"] > > Thanks Josh.  I should have mentioned that I found that work-around.  I > 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. Where exactly is the difference between the functionality and the description? Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/