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
/
(?:\G(?!^)|\[(?=[^][\r\n]*\]))[^\S\r\n]*(.*?) @(.*?), ([^][,\r\n]*)[\];]
/
gm
Input 1
1
New
[prenote @autorkey, postnote] [prenote1 @authorekey1, postnote1; prenote2 @authorkey2, postnote2]
Substitution
[prenote @autorkey, postnote] [prenote1 @authorekey1, postnote1; prenote2 @authorkey2, postnote2]