Peter Tosh wrote: > Hi, > > after lots of trying and searching, I still cant figure out how to > remove the second backslash in a string: > > "c:\\test" > > I need it with one backslash for a comparison in my db. > > Can anyone do it? > > thanks! > Niels Is that a string literal from your source code? Is yes, then you can do away with the 'escaping the backslash' fiasco by using single quoted strings. str = 'c:\test' which is equivalent to: str = "c:\\test" -sos -- Posted via http://www.ruby-forum.com/.