From: Maciej Pilichowski Date: 2006-11-19T03:35:09+09:00 Subject: Re: How to use regexp to replace character with backslash plus this character On Sat, 18 Nov 2006 10:02:59 -0800, Paul Lutus wrote: >data.gsub!(%r{([;!&%$' ])},'\\\\\1') Thank you. But what is the interpretation of 5! backshlashes. First two to achieve one textual backslash -- the last one, to get the on-fly variable. And the rest two? have a nice day bye -- Maciej "MACiAS" Pilichowski http://bantu.fm.interia.pl/