title: Java Regular Expression, match everything but
body: <p>I would like to match everything but <code>*.xhtml</code>.  I have a servlet listening to <code>*.xhtml</code> and I want another servlet to catch everything else.  If I map the Faces Servlet to everything (<code>*</code>), it bombs out when handling icons, stylesheets, and everything that is not a faces request.</p>
  
  <p>This is what I've been trying unsuccessfully.</p>
  
  <pre><code>Pattern inverseFacesUrlPattern = Pattern.compile(".*(^(\\.xhtml))");
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>Thanks,</p>
  
  <p>Walter</p>