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/.