This is a regex to validate the format of an IPv6-based CIDR range, where the IPv6 portion can be standard, mixed, and/or compressed notation.
Supported by: .NET, Java, JavaScript, PCRE, Perl, Python, Ruby
Adapted from IPv6 regex published in Regular Expressions Cookbook