Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^(?:0*(?:25[0-5]|2[0-4]\d|1?\d{1,2})\.){3}0*(?:25[0-5]|2[0-4]\d|1?\d{1,2})$
/
gm
Unit Tests
Matches global broadcast address
Matches 0 address
Matches address with many edge cases
Matches address with edge cases different distribution
Matches other edge cases
Does not match to high numbers
Doesn't match address with to many or not enough parts