I'm using Bloodhound and I'd like to highlight the found words. I'm using the replace plugin to add the tags.

Problem is that if the word is in an URL, the tag goes in there as well (http://site.com/blog/<mark>found</mark>).

Is there a way with regex to exclude text in an "a href" tag?

Answered by Ian Hubbard! Go to answer.