From: Grant Olson Date: 2010-09-16T04:42:28+09:00 Subject: [ruby-core:32404] [Ruby 1.9-Bug#3833][Open] "foo+bar".gsub("+","\\+") == "foobar" ? Bug #3833: "foo+bar".gsub("+","\\+") == "foobar" ? http://redmine.ruby-lang.org/issues/show/3833 Author: Grant Olson Status: Open, Priority: Normal ruby -v: tryruby.org (I'm running 1.8.7 locally, same problem) The following gsub with a minus seems to work correctly: ������>> "foo-bar".gsub("-","\\-") => "foo\\-bar" But with a plus, it seems to run incorrectly by stripping the plus: ��� >> "foo+bar".gsub("+","\\+") => "foobar" ---------------------------------------- http://redmine.ruby-lang.org