title: \' (backslash, single quote) in a Ruby string
body: <p>I am using Ruby 1.8.7, trying to generate a string with the \' characteres, in order to create a script for running in MySQL. The result should be like this:</p>
  
  <pre><code>INSERT INTO table (name, description) values ('Joana d\'Arc', '')
  </code></pre>
  
  <p>But i can't get just one backslash in a ruby string. Using the following code:</p>
  
  <pre><code>string = "INSERT INTO table (name, description) values ('Joana d\\'Arc', '')"
  </code></pre>
  
  <p>I got the following string:</p>
  
  <pre><code>INSERT INTO table (name, description) values ('Joana d\\'Arc', '')
  </code></pre>
  
  <p>And with:</p>
  
  <pre><code>string = "INSERT INTO table (name, description) values ('Joana d\'Arc', '')"
  </code></pre>
  
  <p>I got this string:</p>
  
  <pre><code>INSERT INTO table (name, description) values ('Joana d'Arc', '')
  </code></pre>