From: Daniel DeLorme Date: 2007-05-27T18:20:45+09:00 Subject: Re: Strange behavior of String.scan H奪vard Moen wrote: > Ok, but is there a way to get just the string without using something > like monitor = monitor[0] at the start of the block? You can use a comma to force the array to be parallel-assigned instead of single-assigned: data.scan(/monitor all (.*)$/) do |monitor,| puts monitor.inspect end Daniel