can't you match the strings that start with those two words and then negate the condition? makes more sense to me as a regexp
if (!/^($word1|$word2)/) { # code }
In reply to Re: how to use "NOT" in regex
by mellon85
in thread how to use "NOT" in regex
by palkia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |