Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
@"
^(?=(\d{3}\b)(.*:\r?\n)(?!\1)(\d{3})\b)
"
gm
Input 1
1
New
111 is different from: 111 is different from: 123 is different from: 567.
Substitution
$0\n *** This value $2 ***