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/.