code: public static String[] getResources(String basePath, String regex)
      {
          RegexResourceCriteria criteria = new RegexResourceCriteria(regex);
          String[] resourcesNames = classpathResources.getResources(basePath, criteria);
          return resourcesNames;
      }
docs: Returns the names of the resources in the given directory that match the
  given regular expression.
  
  @param  basePath the directory containing the resources
  @param  regex the regular expression used to filter the resources
  @return the names of the resources in the given directory that match the
  given regular expression