I would like to filter out certain fields, if they do not match criteria. The problem is their sequence. I tried following constructions:
(EXCLUDING)(?!\(MONDAY)(.*MONDAY).*
and
(EXCLUDING)(?!\()(.*MONDAY).*
What I want to achieve is to find a filter than catches EXCLUDING * MONDAY
but not if there is a bracket between these words. That is, I want to catch:
EXCLUDING MONDAY
EXCLUDING WEDNESDAY AND MONDAY
EXCLUDING MONDAY AND WEDNESDAY
EXCLUDING MONDAY (WEDNESDAY IS OK)
but not
EXCLUDING WEDNESDAY (MONDAY IS OK)
The expressions above of course catch all of them. It is to be run in R.