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]|[01]?[0-9][0-9]?)(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}::[^:]*\w$
/
gm
Input 1
This matches which is correct: 10.179.12.241::CALMGTVCSRM0210 This matches but should not: 10.179.12.241::CALMGTVCSRM0210:as
Substitution
This matches which is correct: 10.179.12.241::CALMGTVCSRM0210 This matches but should not: 10.179.12.241::CALMGTVCSRM0210:as