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+)\[([^\[\]]+)
/
gm
Input 1
1
New
3[a]2[bc] 3[a2[c]] 2[abc]3[cd]ef abc3[cd]xyz
Substitution
3[a]2[bc] 3[a2[c]] 2[abc]3[cd]ef abc3[cd]xyz