I have some HTML Text. When i display that i want to highlight some keywords. I dont want to match if that is a part of html tag or any special characters like
for eg : My HTML Text : Hello Welcome to my Spa No. 160
my keywords : spa 160
for highlighting i use keyword
But now its matching the spa inside the tag and 160 inside the special char
How to overcome this...??? I use C# RegEx.
I need a RegEx that matches the keyword but not in tags or special characters.