From: Robert Klemme Date: 2010-03-03T01:46:59+09:00 Subject: Re: MatchData captures... expected two items, but got one? 2010/3/2 Sarah Allen : > Robert Klemme wrote: >> Where exactly is the difference between the functionality and the >> description? > The docs are correct, but not particularly helpful in their description. Ah, OK. > I was confused by the rubular experiment and also by the String.scan > docs http://ruby-doc.org/core/classes/String.html#M000812 where captures > are described as "groups"... or maybe they were just referring to the > result of evaluating the capture with a scan. Whenever I need to find out things like these I test with IRB. That works pretty well for me. Maybe it's an option for you, too. > Thanks everyone for your help! You're welcome! Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/