title: preg_replace href anchor with anchor text
body: <p>how can i replace all the anchors with each anchor text . my code is </p>
  
  <pre><code>$body='&lt;p&gt;The man was &lt;a href="http://www.example.com/video/"&gt;dancing like a little boy&lt;/a&gt; while all kids were watching ... &lt;/p&gt;';
  </code></pre>
  
  <p>i want the result to be : </p>
  
  <pre><code>&lt;p&gt;The man was dancing like a little boy while all kids were watching ... &lt;/p&gt;
  </code></pre>
  
  <p>i used : </p>
  
  <pre><code>$body= preg_replace('#&lt;a href="https?://(?:.+\.)?ok.co.*?&gt;.*?&lt;/a&gt;#i', '$1', $body);
  </code></pre>
  
  <p>and result is : </p>
  
  <pre><code>&lt;p&gt;The man was while all kids were watching ... &lt;/p&gt;
  </code></pre>