From: Gaurang Shah Date: 2011-07-22T00:37:44+09:00 Subject: Re: How to replace "\" from string. Hans Mackowiak wrote in post #1012179: > no nick,s. your code is very wrong: > 1. var is named wrong > 2. gsub wants in this form 2 Strings not one Regex > 3. it does not work because there is no "\\" inside path I have used "\\" instead of "\" coz "\" is a escape character. I can't write something line path.gsub("\","\\") it would be compile time error. -- Posted via http://www.ruby-forum.com/.