title: php 0x00 breaks preg_replace
body: <p>I'm trying to replace <code>\x00</code> in a binary file with:</p>
  
  <pre><code>preg_replace("/[\x00]/", '', $input);
  </code></pre>
  
  <p>If I have <code>\x00</code> anywhere on the pattern preg_replace fails with:</p>
  
  <pre><code>PHP Warning:  preg_replace(): No ending delimiter '/' found
  </code></pre>
  
  <p>What is the recommended way to do this? </p>
  
  <p><B>Edit</b></p>
  
  <p>What I'm actually tring to replace is <code>\x67\x45\x00\x00([^\xFF]{30})</code></p>
  
  <p>but since I've not been able to replace <code>\x00</code> the best I can do is <code>\x67\x45\([^\xFF]{30})</code></p>
  
  <p>which is replacing some sequences it shouldn't</p>