Example: I need a regex pattern which accepts patterns in the following combination
- String should accept both with braces and without braces, first word of every string should start either with NOT or without NOT.
Every word in the sentence should be followed by AND/OR.
Eg: “(NOT cbe AND (man OR hen))