title: preg_match to show lines containing one string and one of the other two
body: <p>I've got an array in php:</p>
  
  <pre><code>Array
  (
      [0] =&gt; sth!Man!Tree!null
      [1] =&gt; sth!Maning!AppTree!null
      [2] =&gt; sth!Man!Lake!null
      [3] =&gt; sth!Man!Tree!null
      [4] =&gt; sth!Man!AppTree!null
      [5] =&gt; sth!Maning!AppTree!null
      [6] =&gt; sth!Man!Tree!null
      [7] =&gt; sth!Maning!AppTree!null
      [8] =&gt; sth!Maning!AppTree!null
      [9] =&gt; sth!Man!Tree!null
     [10] =&gt; sth!Man!Tree!null
     [11] =&gt; sth!Man!Tree!null
     [12] =&gt; sth!Man!Tree!null
     [12] =&gt; sth!Man!Lake!null
     [13] =&gt; sth!Maning!Tree!null
  )
  </code></pre>
  
  <p>and this preg_match function:</p>
  
  <pre><code>preg_match("/Man/i", $line) &amp;&amp; (preg_match("/!Tree!/i", $line) || preg_match("/!Lake!/i", $line))
  </code></pre>
  
  <p>My goal is to change it to one preg_match regex function to display only lines with Man and Tree or Man and Lake. Is it possible?</p>