public static boolean hasVersionString(String url) {
        boolean inVersion = false;
        for (int i = 0; i < url.length(); i++) {
            char c = url.charAt(i);
            if (c == 'v') {
                inVersion = true;
            } else if (Character.isDigit(c) && inVersion) {
                return true;
            } else {
                inVersion = false;
            }


        }

        return false;
    }
public static boolean hasVersionString ( String url ) { boolean inVersion = false ; for ( int i = 0 ; i < url . length ( ) ; i ++ ) { char c = url . charAt ( i ) ; if ( c == 'v' ) { inVersion = true ; } else if ( Character . isDigit ( c ) && inVersion ) { return true ; } else { inVersion = false ; } } return false ; }
Checks whether the url contains a versioning string (v + number, e.g. v12345)
@param url The url to check
@return Whether a version string is contained within the url