Suppose we have the following very simple file:
1 x 3 x
x 3 x 1
Now I'd like to have a pattern that matches all lines containing both 1
and 3
. The order and position should not matter.
(Note that I used a very simple file on purpose. The file could contain many more lines, and the ”words“ could be words like ”hello“ and ”world“.)