From: Gaurang Shah Date: 2011-07-22T00:05:54+09:00 Subject: How to replace "\" from string. Hi all, I have string something like String path = "C:\Gaurang\ruby\demo.xls" would someone let me know how to replace "\" with "\\" I tried something like below path.gsub("\\", "\\\\") but it's not working.. -- Posted via http://www.ruby-forum.com/.