From: "Christian Rish" Date: 2001-04-26T20:40:11+09:00 Subject: [ruby-talk:14257] Re: Escaping single qoutes "Norbert Koch" wrote in message news:vzy9sp9lis.fsf@lamia.LF.net... > I've successfully tried > > puts s.gsub("'", "\\\\'") >> yadda\'yadda\'yadda I see. I guess I was confused by irb's output (it seems any occurences of "\" in the evaluated expression is escaped - which is a nice feature when you are aware of it). Thanks. /Christian