title: preg_replace replace whole string
body: <p>my preg_replace replaces my whole string instead of just the bit where the expression fits.</p>
  
  <p>Code: </p>
  
  <pre><code>http://beta.yapaste.com/bd
  </code></pre>
  
  <p>This is what I want replaced:</p>
  
  <pre><code>&lt;table id=\"post24100391\" style=\"width: 100%;\" class=\"p4\" &gt;
  </code></pre>
  
  <p>Thanks for help.</p>