title: replace a pattern by \x
body: <p>I have strings in which accented characters are coded in hex like this :</p>
  
  <p>extrémité > extr<code>\X2\00</code><strong>E9</strong><code>\X0\</code>mit<code>\X2\00</code><strong>E9</strong><code>\X0\</code></p>
  
  <p>So I plan to replace <code>\X2\00</code><strong>(charcode)</strong><code>\X0\</code> by <code>\X</code><strong>(charcode)</strong>
  but I can't write <code>'\x'</code> in :</p>
  
  <p><code>out.replace(/\X2\00/g,'\x');</code></p>
  
  <p>How can I do that ?</p>
  
  <hr>
  
  <p>This doesn't work neither :</p>
  
  <pre><code>out.replace(/2\00/g,'');
  </code></pre>
  
  <hr>
  
  <p>This is for a parser, here is a file line :</p>
  
  <pre><code>#242= IFCPROPERTYSINGLEVALUE('Num\X2\00E9\X0\ro',$,IFCLABEL('5'),$);
  </code></pre>