Regex for IPv6 address (full form)

Matches a fully written (uncompressed) IPv6 address.

^([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$

Proof it works

4/4 sample tests passed · compiles: true

SampleShould matchResult
2001:0db8:85a3:0000:0000:8a2e:0370:7334 yes pass
2001:db8::1 no pass
192.168.0.1 no pass
not-an-ip no pass

Try your own input

Related patterns