title: PHP Reverse Preg_match
body: <pre><code>if(preg_match("/" . $filter . "/i", $node)) {
      echo $node;
  }
  </code></pre>
  
  <p>This code filters a variable to decide whether to display it or not. An example entry for $filter would be "office" or "164(.*)976".</p>
  
  <p>I would like to know whether there is a simple way to say: if $filter does not match in $node. In the form of a regular expression?</p>
  
  <p>So... not an "if(!preg_match" but more of a $filter = "!office" or "!164(.*)976" but one that works?</p>