I'd like to find a regular expression that matches strings that do NOT contain all the specified elements, independently of their order. For example, given the following data:
one two three four
one three two
one two
one three
four
Passing the words two three to the regex should match the lines one two, one three and four.
I know how to implement an expression that matches lines that do not contain ANY of the words, matching only line four:
^((?!two|three).)*$
But for the case I'm describing, I'm lost.