title: Replace dynamic links with php
body: <p>I wan to replace dynamic links in text with text like:<br>
  if the links are</p>
  
  <pre><code>&lt;a href="show.php?id=3"&gt;Number three&lt;/a&gt;
  &lt;a href="show.php?id=4"&gt;Number four&lt;/a&gt;
  &lt;a href="show.php?id=1"&gt;StackOverflow&lt;/a&gt;
  &lt;a href="view.php?id=9"&gt;Foo&lt;/a&gt;
  </code></pre>
  
  <p>I want this returned</p>
  
  <pre><code>Number three
  Number four
  StackOverflow
  &lt;a href="view.php?id=9"&gt;Foo&lt;/a&gt;
  </code></pre>
  
  <p>What will be the perfect regex for this, I tried handful of regex but they just don't work. <br>
  <strong>EDIT:</strong></p>
  
  <p>String contains other links like <code>view.php?id=5</code> and I don't want to replace them.</p>