^start of line
\ +the literal (3210 / 408 / 2016) , repeated at least once
.+any Unicode character (except for line terminators), repeated at least once
Router Link Statesthe literal text Router Link States (case sensitive) \s*a Unicode whitespace character, repeated any number of times
Non-Capturing Group(?:\([^)]+\))? ?repeats the group contents below at most once:
\(the literal ( (4010 / 508 / 2816)
Negated Character Class[^)]+ +matches at least one character outside the set below:
)the literal ) (4110 / 518 / 2916)
\)the literal ) (4110 / 518 / 2916)
\s+a Unicode whitespace character, repeated at least once
Link IDthe literal text Link ID (case sensitive) .+any Unicode character (except for line terminators), repeated at least once
\s+a Unicode whitespace character, repeated at least once
Group 2((?:[^\r\n]+[\r\n]?)+) Non-Capturing Group(?:[^\r\n]+[\r\n]?)+ +repeats the group contents below at least once:
Negated Character Class[^\r\n]+ +matches at least one character outside the set below:
\ra carriage return (ASCII 13)
\na line-feed (newline) character (ASCII 10)
?matches at most one character from the set below:
\ra carriage return (ASCII 13)
\na line-feed (newline) character (ASCII 10)
g modifier: global. Finds all matches instead of stopping after the first
m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string