From: Comfort Eagle Date: 2006-11-30T09:46:18+09:00 Subject: Re: creating directory "http://example.com" James Britt wrote: > On 11/29/06, Comfort Eagle 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/.