Friday, May 15, 2009

IPv6 Regex - Match legal IPv6 Strings


Ipv6 has various formats,  full form, multiple zeros, removed leading zeros, IPv4 dotted quad at the end, localhost ect. How will I determine if a string is a legal IPv6 address?

Stephen Ryan at Dartware has a Regex for the legal format for Ipv6. Have fun!