src/main/java/org/eluder/coveralls/maven/plugin/util/Wildcards.java
public static boolean matches(final String text, final String wildcard) {
        String pattern = wildcard.replace("?", "\\w").replace("*", "\\w*");
        return (text != null && text.matches(pattern));
    }
public static boolean matches(final String text, final String wildcard) {
        String pattern = wildcard.replace("?", "\\w").replace("*", "\\w*");
        return (text != null && text.matches(pattern));
    }
Matches text against a wildcard pattern where ? is single letter and * is zero or more
letters.

@param text the text to test against
@param wildcard the wildcard pattern
@return <code>true</code> if the given text matches the wildcard, otherwise <code>false</code>