title: How to replace \r in a string in ruby
body: <p>I have a string that looks like this.</p>
  
  <pre><code>mystring="The Body of a\r\n\t\t\t\tSpider"
  </code></pre>
  
  <p>I want to replace all the \r, \n, \t etc with a whitespace. </p>
  
  <p>The code I wrote for this is : </p>
  
  <pre><code>mystring.gsub(/\\./, " ")
  </code></pre>
  
  <p>But this isn't doing anything to the string.</p>
  
  <p>Help.</p>