"Norbert Koch" <nk / LF.net> 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