From: "Xavier Noƫlle" Date: 2010-01-25T18:24:58+09:00 Subject: Re: how to represent a single backslash? irb(main):001:0> puts "\\" \ => nil irb(main):002:0> puts '\\' \ => nil There is a difference between what is written in your code and what the output will be. "\\" is not the same as "\", which is why irb prints the string constant as you entered it. But if you print it, it will output what you expected, i.e. a backslash. -- Xavier NOELLE