title: Regex to search variable assignment
body: <p>I have a directory that contains a couple hundred files full of codes (PHP, HTML, CSS, Jquery, etc.) that I want to search. There are old codes in these files that made use of <code>and</code> and <code>or</code> instead of <code>&amp;&amp;</code> and <code>||</code> respectively.</p>
  
  <p>I'm using Sublime Text 2 for my text editor and I did a Find in Folder search but I want to narrow down the result further so that it only shows me lines where a variable is assigned a value using <code>and</code> or <code>or</code>.</p>
  
  <pre><code>$is_valid = $is_active and !$is_deleted;
  </code></pre>
  
  <p>I know that I can do a search using regex in Sublime Text 2 but I don't do regular expressions so I haven't really tried anything yet.</p>
  
  <h3>EDIT</h3>
  
  <p>The reason I want to narrow down the result is because all of the lines of codes I've seen so far are <code>if</code> statements</p>
  
  <pre><code>if($is_active and !$is_deleted) {}
  </code></pre>
  
  <p>And those shouldn't matter so I don't want to include those.</p>