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]?\d?)|(1\d{1,2}?)|([1-9]\d?)|([1-9]))\.){3}((25[0-5])|(2[0-4]?\d?)|(1\d{1,2}?)|([1-9]\d?)|([1-9]))$
/
gm
Input 1
1
111 000 256 333 222 267 1.1.1.1 255.255.255.255 000.000.000.000 0.0.0.0 100.28.28.1
Substitution
111 000 256 333 222 267 1.1.1.1 255.255.255.255 000.000.000.000 0.0.0.0 100.28.28.1