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"
(?<=i=)([\d]{1,3}(,\s?[\d]{1,3})*)
"
g
Input 1
18 cc9 =1 then do i=10;hcc(i)=0;end; 19 cc15 =1 then do i=16,17,18,19;hcc(i)=0;end;
Substitution
18 cc9 =1 then do i=10;hcc(i)=0;end; 19 cc15 =1 then do i=16,17,18,19;hcc(i)=0;end;