From: Yukihiro Matsumoto Date: 2007-04-26T23:09:39+09:00 Subject: Re: [patch] gsub with backslash characters in replacement string Hi, In message "Re: [patch] gsub with backslash characters in replacement string" on Thu, 26 Apr 2007 17:09:42 +0900, "Adam Bozanich" writes: |Hello, spotted this one the other day: | |irb(main):001:0> '\\'.gsub('\\','\\\\') |=> "\\" |irb(main):002:0> '\\'.gsub('\\','\\\\\\') |=> "\\\\" | |The following patch seems to fix things on my system It was intentional to escape backslashes in replacement string. If it were a bug, how do we escape backslashes? Any idea? matz.