obspy.clients.fdsn.client.Client.RE_IPv6

Client.RE_IPv6 = '(?:\\[(?:[\\d,a-f]{4}|[1-9,a-f][0-9,a-f]{0,2}|0)(?::(?:[\\d,a-f]{4}|[1-9,a-f][0-9,a-f]{0,2}|0)){7}\\]|\\[(?:(?:[\\d,a-f]{4}|[1-9,a-f][0-9,a-f]{0,2}|0):){0,5}(?:[\\d,a-f]{4}|[1-9,a-f][0-9,a-f]{0,2}|0)::\\]|\\[::(?:[\\d,a-f]{4}|[1-9,a-f][0-9,a-f]{0,2}|0)(?::(?:[\\d,a-f]{4}|[1-9,a-f][0-9,a-f]{0,2}|0)){0,5}\\]|\\[::(?:[\\d,a-f]{4}|[1-9,a-f][0-9,a-f]{0,2}|0)(?::(?:[\\d,a-f]{4}|[1-9,a-f][0-9,a-f]{0,2}|0)){0,3}:(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\d{1,2})(?:\\.(?:25[0-5]|2[0-4]\\d|[0-1]?\\d{1,2})){3})\\]|\\[(?:[\\d,a-f]{4}|[1-9,a-f][0-9,a-f]{0,2}|0):(?:(?:[\\d,a-f]{4}|[1-9,a-f][0-9,a-f]{0,2}|0):|:(?:[\\d,a-f]{4}|[1-9,a-f][0-9,a-f]{0,2}|0)){0,4}:(?:[\\d,a-f]{4}|[1-9,a-f][0-9,a-f]{0,2}|0)\\])'

Regex for IPv6