On 11/6/07, Jeremy Woertink <jeremywoertink / gmail.com> wrote: > yermej wrote: > > On Nov 6, 7:00 pm, Jeremy Woertink <jeremywoert... / gmail.com> wrote: > >> second one I would expect it to return "\", instead it returns "\\" both > >> the string that is returned is still wrong. > >> > >> ~Jeremy > >> -- > >> Posted viahttp://www.ruby-forum.com/. > > > > If you actually output the string: > > > >> puts '\\' > > \ > > => nil > > > > you should get the result you're expecting. > Rock on. > > So basically I had to do \\\\ just to get \\ and \\ just to get \. > Crazy, but it works so I'm happy. > Thanks Right. When irb shows you "\\", what it's showing you is the double-quoted correct representation of a single backslash. Todd