title: Problems with FindBugs exclude filter
body: <p>I am in the process of evaluating FindBugs and am trying to make use of the excludeFilter so that the tool does not process the test packages or the generated ejb stubs.</p>
  
  <p>I have tried the following:</p>
  
  <pre><code>&lt;FindBugsFilter&gt;
  &lt;!-- Match any test packages --&gt;
  &lt;Match&gt;
      &lt;Package name="~.*\.test"/&gt;
  &lt;/Match&gt;
  &lt;Match&gt;
      &lt;Or&gt;
          &lt;Class name="~.*\.^_*"/&gt;
          &lt;Class name="~.*EJS*"/&gt;
      &lt;/Or&gt;
      &lt;Bug pattern="MALICIOUS_CODE"/&gt;
  &lt;/Match&gt;
  </code></pre>
  
  <p></p>
  
  <p>The generated EJB's are still being looked at.  Can someone provide some better direction on this.</p>
  
  <p>I want to exclude out all classes that start with "_"</p>
  
  <p>Example:</p>
  
  <p>com/mycompany/business/admin/ejb/_AdminRemoteHome_Stub.java</p>
  
  <p>com/mycompany/business/admin/ejb/_EJSRemoteStatelessAdminHome_054d51b9_Tie.java</p>
  
  <p><strong>Updated filter file.</strong></p>
  
  <p>I change the filter file to the following structure using the suggested regx changes and now  things are working as expected:</p>
  
  <pre><code>&lt;FindBugsFilter&gt;
  &lt;!-- Match any test packages --&gt;
  &lt;Match&gt;
      &lt;Package name="~.*\.test"/&gt;
  &lt;/Match&gt;
  &lt;Match&gt;
      &lt;Class name="~.*\._.*"/&gt;
  &lt;/Match&gt;
  &lt;Match&gt;
      &lt;Class name="~.*?EJS.*"/&gt;       
  &lt;/Match&gt;
  </code></pre>
  
  <p></p>
  
  <p>Looks like I need to go back and brush up on my regx.</p>