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