I need a regex to match a word that is not in a group of words. I have googled and Stacked question an found some suggestions. But they all were about matching a group of chars, not words. so I tried to write a regex by myself. But I couldn’t find a correct regex. Here is my last one that I have tried until now:
(?:(?!office|blog).)+
my words are office, and article. I want input words that are not in this group. Can you help me please?
I think that your Regex should look like this:
This will return “The”, “is”, “closed”, “please”, “visit” and “our”.