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
IP address validation
Open Workspace
PCRE (Legacy)
Match
Created 2016-04-29 13:43
1
Regular Expression
/
(
(
2
[
0
-
4
]
\d
|
25
[
0
-
5
]
|
1
?
\d
?
\d
)
\.
){3}(
2
[
0
-
4
]
\d
|
25
[
0
-
5
]
|
1
?
\d
?
\d
)
/
Description
shortest ip validation regex
Submitted by
Giacomo.