title: Regular expression in Express 4 to capture all requests to static assets for file extension .gz
body: <p>I am looking to do something like this:</p>
  
  <pre><code>app.get('*.gz',function(req,res,next){
  
    res.set('Content-Encoding','gzip');
    next();
  
  });
  </code></pre>
  
  <p>but I don't think the regex I am using is correct. As the example suggests, I am looking for middleware that captures all requests to static assets that have an extension of .gz.  (.gz being files zipped by gzip). Is my example correct?</p>
  
  <p>Also if someone could mention what type of regular expressions Expess uses, that would help me look up reference material. To date, I have never read anywhere whether they are standard JS regexp's or Perl style or what?</p>