From: "charliesome (Charlie Somerville)" Date: 2013-06-24T16:40:04+09:00 Subject: [ruby-core:55628] [ruby-trunk - Bug #8565] Compiled Regexp comparation bug Issue #8565 has been updated by charliesome (Charlie Somerville). I took a quick look at why this is happening. The equality fails because the source of the two regexps is different: 1.9.3: >> Regexp.new('\/').source => "\\/" >> /\//.source => "\\/" 2.0.0: >> Regexp.new('\/').source => "\\/" >> /\//.source => "/" ---------------------------------------- Bug #8565: Compiled Regexp comparation bug https://bugs.ruby-lang.org/issues/8565#change-40115 Author: pyromaniac (Arkadiy Zabazhanov) Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin12.4.0] Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN 2.0.0p195 :001 > Regexp.new('\/') == /\// => false There is no such problem in latest 1.9.3, expression return true -- http://bugs.ruby-lang.org/