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
Private IPv4
Open Workspace
PCRE2 (PHP)
Match
Created 2024-05-03 14:25
1
Regular Expression
/
^
(
(
10
|
127
)(
\.
(
25
[
0
-
5
]
|
2
[
0
-
4
]
[
0
-
9
]
|
[
01
]
?
[
0
-
9
]
[
0
-
9
]
?
)
)
|
169
\.
254
|
192
\.
168
|
172
\.
(
2
[
0
-
9
]
|
1
[
6
-
9
]
|
3
[
0
-
1
]
)
)(
\.
(
25
[
0
-
5
]
|
2
[
0
-
4
]
[
0
-
9
]
|
[
01
]
?
[
0
-
9
]
[
0
-
9
]
?
)
){2}
$
/
gm
Description
Match only Private IPv4
Does not match Public IPv4 and test Nets
Submitted by
NozZy