It's better yes but in fact it will still match plain text : 
a guideline when you write an HTML is to avoid matching text, you will often have to put at least an HTML tag like <code>\<link[^>]*</code> for the CSS file in that example.