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
/
^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|0?[1-9][0-9]?|0?[0-9]?[1-9])(.(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])){2}.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|0?[1-9][0-9]?|0?[0-9]?[1-9])$
/
gm
Input 1
1
New
256.256.256.256 256.255.255.255 255.256.255.255 255.255.256.255 255.255.255.256 255.255.255.255 255.255.255.0 1.1.1.1 0.1.1.1 1.0.1.1 1.1.0.1 1.0.0.1 1.0.0.0 0.0.0.0
Substitution
256.256.256.256 256.255.255.255 255.256.255.255 255.255.256.255 255.255.255.256 255.255.255.255 255.255.255.0 1.1.1.1 0.1.1.1 1.0.1.1 1.1.0.1 1.0.0.1 1.0.0.0 0.0.0.0