How to remove core taxonomy rss feeds
If you're using D7 hook_html_head_alter is your friend.

something like

function my_html_head_alter(&amp;$head_elements) {
  foreach ($head_elements as $key =&gt; $element) {
    if (isset($element['#attributes']['type']) &amp;&amp; $element['#attributes']['type'] == 'application/rss+xml') {
      unset($head_elements[$key]);
    }
  }
}


Otherwise your attempt seems to be the best solution. Perhaps try ungreedy regex?

&lt;link rel="alternate" type="application\/rss\+xml" title="[^"]*?" href="[^"]*?"&gt;