public static boolean containsPattern(final String url, final String[] patterns) {
        for (final String entry : patterns) {
            if (StringUtils.containsIgnoreCase(url, entry)) {
                return true;
            }
        }
        return false;
    }
Check if the URL contains one of the given substrings.

@param url      the URL to check
@param patterns a list of substrings to check against
@return <tt>true</tt> if the URL contains at least one of the patterns, <tt>false</tt> otherwise
main/src/main/java/cgeo/geocaching/utils/ImageUtils.java