Also, you might want to escape the "words" for regex special characters using quotemeta./^(?!$word1|$word2).../
/^(?!\Q$word1\E|\Q$word2\E).../
In reply to Re: how to use "NOT" in regex
by wind
in thread how to use "NOT" in regex
by palkia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |