From: Daniel Harple Date: 2006-04-29T02:43:40+09:00 Subject: Re: regex loop yields single element array for multiple finds On Apr 28, 2006, at 7:26 PM, Xeno Campanoli wrote: > I have a string with say "@@@asdfasdf@@@ @@@ lk;lk@@@" called > markup, and I do: > [...] > and I get the class as always Array, and the length as 1. What's > with that? "@@@asdfasdf@@@ @@@ lk;lk@@@".scan(/@@@/) do |ats| ats # => "@@@", "@@@", "@@@", "@@@" ats.class # => String, String, String, String end You must be doing something else. -- Daniel