The regex pattern is required to match all instances of a specified word, that does not need to match only individual words but also in-word content.
E.g. searching for media
match the instance in mediator
.
There are few exceptions. If the word content is within a url or a font-family declaration the match should SKIP. This is the code i came up so far, but i'am missing something as it skips all.
(?:font-family:|https?:\/\/)[^\s\'";}]*(*SKIP)(*FAIL)(media)
The above can be tested at Regex101.