public static boolean matchPath(String path, String pattern) {
        String[] pathElements = jodd.util.StringUtil.splitc(path, PATH_SEPARATORS);
        String[] patternElements = jodd.util.StringUtil.splitc(pattern, PATH_SEPARATORS);
        return matchTokens(pathElements, patternElements);
    }
Matches path against pattern using *, ? and ** wildcards.
Both path and the pattern are tokenized on path separators (both \ and /).
'**' represents deep tree wildcard, as in Ant.
indexr-common/src/main/java/io/indexr/util/Wildcard.java