title: Shiro Path Pattern exclude
body: <p>In my shiro application, I want to define a <code>AuthenticationFilter</code> for all paths except REST.</p>
  
  <p>ie <code>/rest/...</code> doesnt go through it but everything else would.</p>
  
  <p>I'm using <code>Shiro-Guice</code> so my filter setups are of the form </p>
  
  <pre><code>addFilterChain("/rest/**" ,restFilter)
  addFilterChain("/**", filter)    //I want this one to work on everything except my rest filter
  </code></pre>
  
  <p>I looked at <a href="https://stackoverflow.com/questions/2952196/learning-ant-path-style">this question</a> about Ant path pattern style but there doesnt seem to be support for regexes. </p>