public static boolean isIPv6Address(final String address) {
        return address != null && (isIPv6StdAddress(address) || isIPv6HexCompressedAddress(address));
    }
Ip matching patterns from
https://examples.javacodegeeks.com/core-java/util/regex/regular-expressions-for-ip-v4-and-ip-v6-addresses/
note that these patterns will match most but not all valid ips
library/src/main/java/com/stealthcopter/networktools/IPTools.java