From: Matt Date: 2008-05-18T13:10:19+09:00 Subject: sub/gsub bug? Is this a bug? irb(main):032:0> "matt's test".sub(/'/, "\\'") => "matts tests test" It's trying to replace a single quote with an escaped quote. Thanks in advance, Matt