title: java filenames filter pattern
body: <p>I need to implement </p>
  
  <pre><code>File[] files = getFiles( String folderName, String ptrn );
  </code></pre>
  
  <p>Where ptrn is a command prompt style pattern like "*2010*.txt"</p>
  
  <p>I'm familar with FilenameFilter class, but can't implement 
  <code>public boolean accept(File dir, String filename)</code>
  because String.matches() doesn't accept such patterns.</p>
  
  <p>Thanks!</p>