I want to replace all & characters into \\& with String.gsub (or a other method). I\'ve tried several combinations and read an
&
\\&
String.gsub
ruby-1.9.2-p180 :008 > puts "asdf & asdf".gsub(/&/, '\\\&') asdf \& asdf