title: Strip anchors down to their contents, only if the anchor's URL contains
body: <p>Does anyone know a regex function in PHP to strip an anchor of its contents, only if the anchor's href attribute contains specific text?</p>
  
  <p>For example, I have an HTML page and there are links throughout. But I want to strip only the anchors that contain "yahoo" in the URL. So <code>&lt;a href="http://pages.yahoo.com/page1"&gt;Example page&lt;/a&gt;</code> would become: Example, while other anchors in the HTML not containing "yahoo" would be left alone.</p>