“IPv6 address” is one of the patterns that you can select on the Match panel. Use it to make a field match a internet address such as 1762:0:0:0:0:b03:1:af18 or 1762::b03:1:af18.
![]()
Allow the field to match IPv6 addresses that use the standard notation with 8 groups of hexadecimal numbers delimited by colons in the form of 2001:db8:85a3:0:0:8a2e:370:7334 or 2001:0db8:85a3:0000:0000:8a2e:0370:7334.
Allow the field to match IPv6 addresses that use the compressed notation that replaces the longest sequence of consecutive all-zero groups with two colons as in 2001:db8:85a3::8a2e:370:7334 or 2001:0db8:85a3::8a2e:0370:7334. This option by itself does not allow the field to match IPv6 addresses that do not have any all-zero groups. To allow those you need to allow the standard notation in addition to the compressed notation.
Note that compressed notation can lead to very short representations for IPv6 addresses. For example, the loopback address 0:0:0:0:0:0:0:1 is compressed to ::1 as it has only one non-zero group and the IPv6 unspecified address 0:0:0:0:0:0:0:0 is reduced to just two colons :: as it consists entirely of zeros. So if you allow compressed notation the generated regex can match any pair of colons.
Turn on to require each each part of the IPv6 address to have exactly 4 hexadecimal numbers as in 2001:0db8:85a3:0000:0000:8a2e:0370:7334 when using standard notation or 2001:0db8:85a3::8a2e:0370:7334 when using compressed notation.
Turn off to allow leading zeros to be omitted so that the field can match both the above address as well as the shorter in the form of 2001:db8:85a3:0:0:8a2e:370:7334 when using standard notation or 2001:db8:85a3::8a2e:370:7334 when using compressed notation.
When allowing mixed notation, this option only affects the 6 groups with hexadecimal numbers. The IPv4 portion of the address never requires leading zeros.
Allow the field to match IPv6 addresses that use the IPv4 dotted notation for the lower 32 bits of the IPv6 address. Thus 0:0:0:0:0:ffff:192.0.2.128 in mixed notation represents 0:0:0:0:0:ffff:c000:280 in standard notation.
Allow the field to match IPv6 addresses using compressed mixed notation that uses the IPv4 dotted notation for the lower 32 bits of the IPv6 address and that replaces the longest sequence of consecutive all-zero groups in the upper 96 bits with two colons. Thus :ffff:192.0.2.128 in compressed mixed notation represents ::ffff:c000:280 in compressed notation. This notation is primarily used for transitioning between IPv4 and IPv6 when there is a clear mapping between IPv4 and IPv6 addresses.
Turn on if the text may contain dotted numbers like 999.999.999.999 that aren’t IPv4 addresses and you want to make sure your regular expression does not allow these in IPv6 addresses using mixed notation.
Turn on if the text you will be using this regex on does not contain any invalid IPv6 addresses, meaning there is no need to make the regex exclude things like 999.999.999.999 because they don’t occur in the text anyway.
This option only makes a difference when the field validation mode is set to “average” or “strict”. Only these modes generate regexes that restrict the 4 numbers of the IPv4 portion in mixed IPv6 notation.
If the matched IPv6 addresses must have a subnet mask (the 24 in 192.168.0.0/24), specify the smallest subnet mask you want to allow.
Set the minimum subnet mask to zero to make the subnet mask optional.
If the matched IPv6 addresses must have a subnet mask (the 24 in 192.168.0.0/24), specify the largest subnet mask you want to allow.
Set the maximum subnet mask to zero if you don't want the field to match subnet masks.