(?s)applies the following effective flags to the remainder of the pattern: gs s modifier: single line. Allows a dot to match line terminators
\[the literal [ (9110 / 1338 / 5B16)
codethe literal text code (case sensitive) Atomic Group(?>(?:=(?:(["'])(.{0,50}?)\1|([^\]]{0,50})))?) Non-Capturing Group(?:=(?:(["'])(.{0,50}?)\1|([^\]]{0,50})))? ?repeats the group contents below at most once:
=the literal = (6110 / 758 / 3D16)
Non-Capturing Group(?:(["'])(.{0,50}?)\1|([^\]]{0,50})) 1st Alternative(["'])(.{0,50}?)\1 "the literal " (3410 / 428 / 2216)
'the literal ' (3910 / 478 / 2716)
.{0,50}?any character, repeated between 0 and 50 times
\1the text saved by group 1
2nd Alternative([^\]]{0,50}) Negated Character Class[^\]]{0,50} {0,50}matches between 0 and 50 characters outside the set below:
\]the literal ] (9310 / 1358 / 5D16)
\]the literal ] (9310 / 1358 / 5D16)
Negative Lookahead(?!\s*\[\/code\]) \s*any whitespace character, repeated any number of times
\[the literal [ (9110 / 1338 / 5B16)
\/the literal / (4710 / 578 / 2F16)
codethe literal text code (case sensitive) \]the literal ] (9310 / 1358 / 5D16)
.*?any character, repeated any number of times
\[the literal [ (9110 / 1338 / 5B16)
\/the literal / (4710 / 578 / 2F16)
codethe literal text code (case sensitive) \]the literal ] (9310 / 1358 / 5D16)
g modifier: global. Finds all matches instead of stopping after the first