From: "Håvard Moen" Date: 2007-05-27T18:45:01+09:00 Subject: Re: Strange behavior of String.scan Daniel DeLorme wrote: > 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 Great, thanks. -- Håvard Laws are like sausages, it is better not to see them being made. -- Bismarck