From: Phrogz Date: 2006-07-22T02:25:11+09:00 Subject: Re: Replacing ' with \' using gsub Jan Svitok wrote: > Seems to me like a bug in the regex code. > using ruby 1.8.4 (2005-12-24) [i386-mswin32] But it isn't. You need more backslashes. See "Explanation for the multitude of backslashes " at http://wiki.rubygarden.org/Ruby/page/show/RegexpCookbook or search the list archives, as this comes up frequently by newcomers (including myself, when I was young ;).