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
/
(G1:k6YxekrAP71LqRv)\[(?:S:(?:\d,)+\d\|)?(P:3)(?:\|R:(?:\d,)+\d)?\]
/
gm
Input 1
1
New
G1:k6YxekrAP71LqRv[P:3] G1:k6YxekrAP71LqRv[S:2,3,4|P:3] G1:k6YxekrAP71LqRv[P:3|R:2,3,4,5] G1:k6YxekrAP71LqRv[S:2,3,4|P:3|R:2,3,4,5]
Substitution