From: Pit Capitain Date: 2005-08-01T19:22:00+09:00 Subject: Redefining Regexp#=== Hi, what's wrong with this code: class Regexp alias :case_eq :=== def ===( other ) case_eq( other ) end end p( /x/ === "abxy" ) # => true p( Regexp.last_match ) # => nil p( /x/.case_eq( "abxy" ) ) # => true p( Regexp.last_match ) # => # Why is Regexp.last_match not set when calling the redefined method? This is ruby 1.8.2 (2004-12-25) [i386-mswin32] on Windows 2000. Regards, Pit