Update: As per comments regarding the ambiguity of my question, I\'ve increased the detail in the question.
(Terminology: by words I am refering to
I submitted this 2nd answer coz it looks like the question has changed quite a bit and my previous answer is no longer valid. Anyway, if all conditions are listed up, try this:
(((?