Regex loop yields single element array for multiple finds:


#1

Okay, my string has a parenthesized section, and that is doing it:

markup.scan(/@@@.?(@@@).?@@@/) do |ats|
puts ats.length
puts ats.class
end

is a closer to what I’ve got. My apologies. So, it looks like whenever
you specifiy
a section with parameters you then get an array. I guess that makes
sense. Thanks.

xc