From: Robert Klemme Date: 2012-04-16T21:43:08+09:00 Subject: Re: how to avoid escaping special chars after backslah in string On Fri, Apr 13, 2012 at 8:21 PM, Lucky Nl wrote: > Roger Pack wrote in post #1056378: >> so what's your ideal syntax here? > > i want to return string whatever i have given without escaping chars > followed by slash.So can we do anything that slash also consider as a > char like * in my example Escape the backslash: irb(main):001:0> puts 'a\\b' a\b Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/