code: public boolean accept(File file) {
      Matcher m = pattern.matcher(file.getName());
      return m.matches();
    }
docs: Checks whether a file satisfies the selection filter.
  
  @param file The file
  @return true if the file is acceptable