I have a string where i need to find out if particular character is
present in that string or not..

I need to verify that string does not contain "\\"
for that I am doing something like below

 String path="C:\Gaurang\ruby\demo.xls"
  if (!path.index("\\").nil?) then
  #Do process here
  end
but it is not working.

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