public static boolean isIPV6(String ip) {

		Pattern ipv6_hex4 = Pattern.compile(IPV6_HEX4DECCOMPRESSED_REGEX);
		Pattern ipv6_6hex4 = Pattern.compile(IPV6_6HEX4DEC_REGEX);
		Pattern ipv6_hexcom = Pattern.compile(IPV6_HEXCOMPRESSED_REGEX);
		Pattern ipv6 = Pattern.compile(IPV6_REGEX);

		Matcher matcher_ipv6_hex4 = ipv6_hex4.matcher(ip);
		Matcher matcher_ipv6_6hex4 = ipv6_6hex4.matcher(ip);
		Matcher matcher_ipv6_hexcom = ipv6_hexcom.matcher(ip);
		Matcher matcher_ipv6 = ipv6.matcher(ip);

		return (matcher_ipv6_hex4.find() || matcher_ipv6_6hex4.find()
				|| matcher_ipv6_hexcom.find() || matcher_ipv6.find());

	}