View this Demo RegExp
I do not want to capture "xyz" word inside between www. or .com
View Screen
Just add a negative look-behind and looakhead before and after to xyz
.
(?<!www\.)[Xx]yz(?!\.com)(?=[^<>]*<)(?!(<(?:a|span)>(?:.|\n))*</(?:span|a)>)