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
r"
image:\s*\"?([^/]+/([^:]+):([^\"\n]+))
"
gm
Input 1
1
image: xyz.com/elk_init_cos7:1.0.0-20.12.0 image: "xyz.com/ckaf/kafka:4.1.0-5.4.1-59"
Substitution
image: xyz.com/elk_init_cos7:1.0.0-20.12.0 image: "xyz.com/ckaf/kafka:4.1.0-5.4.1-59"