Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
ipv6 Validation
Open Workspace
PCRE (Legacy)
Match
Created 2015-09-04 16:46
5
Regular Expression
/
^
(
(
(
[
0
-
9A
-
Fa
-
f
]
{1,4}
:
){1,6}
:
)
|
(
(
[
0
-
9A
-
Fa
-
f
]
{1,4}
:
){7}
)
)(
[
0
-
9A
-
Fa
-
f
]
{1,4}
)
$
/
Description
Handle all condition for ipv6 example:
FE80::8329
FE80::FFFF:8329
FE80::B3FF:FFFF:8329
FE80::0202:B3FF:FFFF:8329
FE80::0000:0202:B3FF:FFFF:8329
FE80::0000:0000:0202:B3FF:FFFF:8329
FE80:0000:0000:0000:0202:B3FF:FFFF:8329
Submitted by
Lim Yew Teck, Nicholas