From: noreply@... Date: 2007-04-26T17:37:27+09:00 Subject: [ ruby-Patches-10380 ] gsub with backslash characters in replacement string Patches item #10380, was opened at 2007-04-26 08:37 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1700&aid=10380&group_id=426 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Adam Bozanich (abozanich) Assigned to: Nobody (None) Summary: gsub with backslash characters in replacement string Initial Comment: Hello, spotted this one the other day: irb(main):001:0> '\'.gsub('\','\\') => "\" irb(main):002:0> '\'.gsub('\','\\\') => "\\" This patch seems to work OK on my system. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1700&aid=10380&group_id=426