I have this text
"(Objectid < 200 OR ObjectID > 600) and (test or best) W/5 AND (apple OR 10a) AND (Objectid < 100 OR ObjectID > 500)"
I want to get the string(s) containing the substring And
or Or
wrapped in ( )
nearest to W/digit
(from the left or right) in the above string, where digit
is a number.
In the above example I should get (test or best) (apple OR 10a)