From: Drew Olson Date: 2007-12-19T04:25:05+09:00 Subject: Re: New to ruby Sebastian Hungerecker wrote: > Drew Olson wrote: >> user = line.scan(/US=(\w+)/).flatten.first > > user = line[/US=(\w+)/, 1] Sebastian - Thanks for posting that. I'm always finding myself needing something similar and had a feeling there was an easier syntax. - Drew -- Posted via http://www.ruby-forum.com/.