We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Regex help

Erin Dalzell October 14, 2014 by Erin Dalzell

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!
>>>>>>> Answered <<<<<<<
3 Replies
3 Followers