From: Nikita Petrov Date: 2008-09-12T22:01:35+09:00 Subject: Re: Replacing ' with \' Thomas B. wrote: > The backslash has a special meaning in gsub. Use str.gsub("'", "\\\\'") > instead. Thanks, that helped me. -- Posted via http://www.ruby-forum.com/.