?matches at most one character from the set below:
the literal (3210 / 408 / 2016)
Comment: possibly followed by some spaces
Non-Capturing Group(?:\n[ ]*)? ?repeats the group contents below at most once:
\na line-feed (newline) character (ASCII 10)
*matches any number of characters from the set below:
the literal (3210 / 408 / 2016)
Comment: and a new line with some space
Negative Lookbehind(?<!\\) \\the literal \ (9210 / 1348 / 5C16)
\[the literal [ (9110 / 1338 / 5B16)
\^the literal ^ (9410 / 1368 / 5E16)
Comment: Make sure, this is not confused with a footnote
Group link_id(?<link_id>.*?) .*?any character, repeated any number of times
Negative Lookbehind(?<!\\) \\the literal \ (9210 / 1348 / 5C16)
\]the literal ] (9310 / 1358 / 5D16)
Comment: with the link id in brackets, but may be empty