I believe you need to add delimiters, it should look like
Path.gsub(/"\\", "\\\\"/)

-- 
Posted via http://www.ruby-forum.com/.