From: "Seth .." Date: 2007-05-09T04:22:18+09:00 Subject: Re: Pass data to a variable Chris Carter wrote: > #map and #to_yaml should do it > > body = link.search("//font[@class='hosts']").map do |host| > host.to_html.match(/[a-z]+[0-9]*\.(foo|bar)\.[a-z]+/) > end.to_yaml Holy crap! That's why I love this site. Thanks a million. I'm slowly learning Ruby but I've always been more of an admin than a developer. Thanks again --seth -- Posted via http://www.ruby-forum.com/.