I have a string query
const query = '(travel OR explore OR vacation OR trip) NOT (app OR agency) AND flight';
I want to store the words inside "NOT" block in an array. What could be the most effective approach for this?
Expected result - ["app", "agency"]