I would like to write a regular expression that matches any word.
I use [a-zA-Z]* except for some words, for example WORD1 and WORD2.
So somethingsomething matches, but the words WORD1 and WORD2 won't. Is it possible in flex?
I have tried:
[a-zA-Z]*|[^"WORD1""WORD2] and [a-zA-Z]*{-}["WORD1""WORD2"] but neither works.
(Now I know why they don't work but I still don't know the solution.)