title: Replace anchor text with PHP (and regular expression)
body: <p>I have a string that contains a lot of links and I would like to adjust them before they are printed to screen: </p>
  
  <p>I have something like the following: </p>
  
  <pre><code>&lt;a href="http://www.dont_replace_this.com"&gt;replace_this&lt;/a&gt;
  </code></pre>
  
  <p>and would like to end up with something like this</p>
  
  <pre><code>&lt;a href="http://www.dont_replace_this.com"&gt;replace this&lt;/a&gt;
  </code></pre>
  
  <p>Normally I would just use something like: </p>
  
  <pre><code>echo str_replace("_"," ",$url); 
  </code></pre>
  
  <p>In in this case I can't do that as the URL contains underscores so it breaks my links, the thought was that I could use regular expression to get around this.</p>
  
  <p>Any ideas?</p>