From: Ralph Mason Date: 2004-01-22T06:57:22+09:00 Subject: gsub oddity? What am I missing here. I am trying to replace a single quote with the string \' irb(main):032:0> "replace 'quotes'.".gsub(/'/,"\\'") => "replace quotes'.quotes.." should be "replace \'quotes\'." Thanks Ralph