James Britt wrote:
> On 11/29/06, Comfort Eagle <steve / fooworks.com> wrote:
> 
>> Hmm, ok then.  How could I strip http:// from that string?
>>
>> --
> url = 'http://example.com'
> url.gsub!( /^http:\/\//i, '')
> 
> 
> 
> James

Interesting.  Newb Q, I'm sure, but when I put that in a while loop I 
get: "private method `gsub!' called for ..."  /me googles & still 
scratches head.

"
res.each do |url|
  puts url.gsub!( /^http:\/\//i, '')
end
"

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