From: Gaurang Shah Date: 2011-07-22T00:10:36+09:00 Subject: How to find the character in string 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/.