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 > Are you sure there are two backslashes, or is that just the escaping backslash? irb(main):001:0> "c:\\test" => "c:\\test" irb(main):002:0> puts "c:\\test" c:\test => nil irb(main):003:0> "c:\\test".length => 7 -Justin