From: Rafael Viana Date: 2008-09-09T00:18:46+09:00 Subject: Re: Single backslash in a string. How?? Lloyd Linklater wrote: > How about posting the actual code you use to get the bad result and what > you want as a good result with it? The problem is simple I want to be able to tell if a variable contains the value "\d", but I can't seem to be able to represent this value with ruby. This problem only occurs with the letters "d" and "l" try "\d" and "\\d" in irb and you'll understand what I mean -- Posted via http://www.ruby-forum.com/.