Displaying page
of
pages;
Items to
Title |
Test
Details
IPv6 addresses (RFC 4291)
|
Expression |
/^(((?=.*(::))(?!.*\3.+\3))\3?|([\dA-F]{1,4}(\3|:\b|$)|\2))(?4){5}((?4){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})\z/i
|
Description |
This regex matches all (14.095.120.151.883.281.746.489.830.170.974.347.714.655.937) valid IPv6 address _representations_ as described by RFC 4291.
Current regex is valid for PCRE only, for Perl/Java/Ruby/Phython/.NET/ECMA(JavaScript)/XML specific regex visit
http://home.deds.nl/~aeron/regex/
|
Matches |
1:2:3:4:5:6:7:8 | 1:2:3:4:5:6:1.2.3.4 | 1::8 | 1::1.2.3.4 | :: | ::1.2.3.4 | 0000:000:00:0::0.0.0.0
|
Non-Matches |
::01.02.03.04 | ::001.002.003.004 | ::011.022.033.044
|
Author |
Rating:
Aeron
|
Displaying page
of
pages;
Items to