\[the literal [ (9110 / 1338 / 5B16)
\w+any word character, repeated at least once
\ban ASCII word boundary
Negated Character Class[^]]* *matches any number of characters outside the set below:
]the literal ] (9310 / 1358 / 5D16)
\]the literal ] (9310 / 1358 / 5D16)
Group 4((?>(?!\[\2\b).|(?R))*) Atomic Group(?>(?!\[\2\b).|(?R))* *repeats the group contents below any number of times:
1st Alternative(?!\[\2\b). Negative Lookahead(?!\[\2\b) \[the literal [ (9110 / 1338 / 5B16)
\2the text saved by group 2
\ban ASCII word boundary
.any character
(?R)recurses into the entire pattern
\[the literal [ (9110 / 1338 / 5B16)
\/the literal / (4710 / 578 / 2F16)
\2the text saved by group 2
]the literal ] (9310 / 1358 / 5D16)
g modifier: global. Finds all matches instead of stopping after the first
s modifier: single line. Allows a dot to match line terminators