private static String convertInputToRegex(String input) {
        if (IntStream.of(GLOB_IDENTIFIERS).anyMatch(identifier -> input.chars().anyMatch(inputChar -> inputChar == identifier))) {
            // convert glob pattern into regular expression
            return GlobHandler.convertGlobToRegex(input);
        }
        // backward compatible support for absolute paths with "." as separator
        return input.replace('.', '/');
    }
Generate regular expression from the given input for filtering classes on the classpath.

@param input either absolute value (with "." as package separator) or glob pattern (with "/" as package separator)
@param forPackage whether the given input identifies a package
@return regular expression to filter classes on classpath by
jsonschema-maven-plugin/src/main/java/com/github/victools/jsonschema/plugin/maven/GlobHandler.java