unknown wrote:
> Hi --
> 
> On Thu, 7 Jun 2007, Joshua Ballanco wrote:
> 
>>> -C
>>
>> Don't forget, regular expressions in Ruby are objects (...well, yes,
>> everything in Ruby is objects...). So, you could do something like:
>>
>> YOUTUBE_PARSER = Regexp.(/\w+$/)
> 
> Actually it's even easier:
> 
>    YOUTUBE_PARSER = /\w+$/
> 
> :-)
> 
> 
> David

Hmm...true...in fact, I left out the "new" (should have been 
Regexp.new(/\w+$/) )...so...yeah...

-- 
Posted via http://www.ruby-forum.com/.