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
/
(?<=:)\d+(?=[^\d\r\n]*[\r\n]+.*SCC\+2)
/
gm
Input 1
1
New
QTY+66:90:PCE SCC+2 DTM+45:20200416:15 QTY+66:60:PCE SCC+3 DTM+35:20210614:2
Substitution
QTY+66:90:PCE SCC+2 DTM+45:20200416:15 QTY+66:60:PCE SCC+3 DTM+35:20210614:2