I have my basic javascript regex for any string containing at least one alphabet:
^(.*[A-Za-z]+.*)+
Now I want to update this regex so it won't match the following words: "n\a" and "none". Containing them is valid, meaning "n\aa" or "nn\a" are valid, and just words that are an exact match to the words I don't want will cause regex not to match.
I saw that many examples to words not containing specific string using negative lookbehind like
^(?!.*bar).*$
but I wasn't able to transform it to work with exact match.