title: javascript pattern replacement using backreference is not working
body: <pre><code>string.replace(/([\t])/g,"\\$1")
  </code></pre>
  
  <p>is <strong>working</strong> fine where</p>
  
  <pre><code>string.replace(/([\n])/g,"\\$1")
  </code></pre>
  
  <p>is <strong>not working</strong>!!!</p>
  
  <p>any idea please???</p>
  
  <p>N.B. </p>
  
  <pre><code>string.replace(/\n/g,"\\\n")
  </code></pre>
  
  <p>is also working fine</p>