title: php preg_replace ignore $n in content
body: <p>My current regex is <code>/[$]([a-zA-Z0-9_\-\,:]*)[$]/</code> and this will allow me to replace strings like the following for our CMS:</p>
  
  <pre><code>$ContentArea1$
  $blog:PostTitle$
  </code></pre>
  
  <p>However when we have content which has prices in dollars <code>preg_replace</code> gets rid of the first part of the price e.g. <code>$15 $1 $2 etc</code></p>
  
  <p>How can I make <code>preg_replace</code> ignore prices within the content?</p>
  
  <pre><code>    &lt;?
  
      $message = 'Below is an example for the content replacement&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;$ContentArea1$';
  
      $newMessage = '&lt;h2&gt;Website Coming soon&lt;/h2&gt;
  &lt;p&gt;
      Are new website will be online soon.&lt;/p&gt;
  &lt;p&gt;
      Price: $2.50&lt;/p&gt;
  &lt;h2&gt;
      Twitter Feed&lt;/h2&gt;
  ';
  
  
  
  
  
      echo preg_replace('/[$]ContentArea1[$]/',$newMessage,$message);
  
  ?&gt;
  </code></pre>