title: javascript replace() not replacing text containing literal \r\n strings
body: <p>Using this bit of code trims out hidden characters like carriage returns and linefeeds with nothing using javascript just fine:</p>
  
  <pre><code>value = value.replace(/[\r\n]*/g, "");
  </code></pre>
  
  <p>but when the code actually contains \r\n text what do I do to trim it without affecting r's and n's in my content?  I've tried this code:</p>
  
  <pre><code>value = value.replace(/[\\r\\n]+/g, "");
  </code></pre>
  
  <p>on this bit of text:</p>
  
  <pre><code>{"client":{"werdfasreasfsd":"asdfRasdfas\r\nMCwwDQYJKoZIhvcNAQEBBQADGw......
  </code></pre>
  
  <p>I end up with this:</p>
  
  <pre><code>{"cliet":{"wedfaseasfsd":"asdfRasdfasMCwwDQYJKoZIhvcNAQEBBQADGw......
  </code></pre>
  
  <p>Side note: It leaves the upper case versions of R and N alone because I didn't include the /i flag at the end and thats ok in this case.</p>
  
  <p>What do I do to <strong>just remove \r\n text</strong> found in the string?</p>