title: how to replace an apostrophe using gsub
body: <p>I want to replace apostrophe(') in a name with "backslash apostrophe" (\') . But Unfortunately not getting such a simple thing.</p>
  
  <p>So on irb I tried following</p>
  
  <p>x = "stack's"
  x.gsub(/[\']/,"\'")</p>
  
  <p>Some how it is not working I am getting same result- stack's in place of stack\'s</p>