title: preg_replace PHP not working?
body: <p>Why doesn't preg_replace return anything in this scenario? I've been trying to figure it out all night.</p>
  
  <p><strong>Here is the text contained within $postContent:</strong></p>
  
  <p>Test this. Here is a quote: [Quote]1[/Quote] Quote is now over.</p>
  
  <p><strong>Here is my code:</strong></p>
  
  <pre><code>echo "Test I'm Here!!!";
                      $startQuotePos = strpos($postContent,'[Quote]')+7;
                      $endQuotePos = strpos($postContent,'[/Quote]');
                      $postStrLength = strlen($postContent);
                      $quotePostID = substr($postContent,$startQuotePos,($endQuotePos-$postStrLength));
                      $quotePattern = '[Quote]'.$quotePostID.'[/Quote]';
                      $newPCAQ = preg_replace($quotePattern,$quotePostID,$postContent);
                      echo "&lt;br /&gt;$startQuotePos&lt;br /&gt;$endQuotePos&lt;br /&gt;$quotePostID&lt;br /&gt;Qpattern:$quotePattern&lt;br /&gt;PCAQ: $newPCAQ&lt;br /&gt;";
  </code></pre>
  
  <p><strong>This is my results:</strong></p>
  
  <p>Test I'm Here!!!</p>
  
  <p>35</p>
  
  <p>36</p>
  
  <p>1</p>
  
  <p>Qpattern:[Quote]1[/Quote]</p>
  
  <p>PCAQ: </p>