ipv6Str top-level property
The pattern used by the ipv6 regular expression. The pattern matches any string that contains a valid IPv6 address. The pattern allows for optional leading and trailing digits, an optional decimal point, and an optional exponent part (e.g., e+10 or E-10). The pattern matches any string that contains only hexadecimal digits (0-9, a-f, A-F).
Implementation
String ipv6Str = r'^::|^::1|^([a-fA-F0-9]{1,4}::?){1,7}([a-fA-F0-9]{1,4})$';