Hi,

At Thu, 26 Apr 2007 23:34:14 +0900,
Lyle Johnson wrote in [ruby-core:11032]:
> Why does his second example:
> 
>     '\\'.gsub('\\', '\\\\\\')
> 
> result in "\\\\" (with four backslashes) instead of "\\\" (with three)?

Because irb shows the result of String#inspect.

-- 
Nobu Nakada