(?ms)applies the following effective flags to the remainder of the pattern: gmxs m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string
s modifier: single line. Allows a dot to match line terminators
Group Connection(?<Connection>^\d+) ^start of line
\d+a Unicode decimal digit, repeated at least once
\s+a Unicode whitespace character, repeated at least once
IKEthe literal text IKE (case sensitive) \sa Unicode whitespace character
Peerthe literal text Peer (case sensitive) +matches at least one character from the set below:
\sa Unicode whitespace character
:the literal : (5810 / 728 / 3A16)
Group IKEPeer(?<IKEPeer>[\d\.]+\s\([\w ]+\)) +matches at least one character from the set below:
\da Unicode decimal digit
\.the literal . (4610 / 568 / 2E16)
\sa Unicode whitespace character
\(the literal ( (4010 / 508 / 2816)
+matches at least one character from the set below:
\wa Unicode word character
the literal (3210 / 408 / 2016)
\)the literal ) (4110 / 518 / 2916)
.+?any Unicode character, repeated at least once
Typethe literal text Type (case sensitive) +matches at least one character from the set below:
\sa Unicode whitespace character
:the literal : (5810 / 728 / 3A16)
+matches at least one character from the set below:
\wa Unicode word character
\s+a Unicode whitespace character, repeated at least once
Rolethe literal text Role (case sensitive) +matches at least one character from the set below:
\sa Unicode whitespace character
:the literal : (5810 / 728 / 3A16)
\w+a Unicode word character, repeated at least once
.+?any Unicode character, repeated at least once
Rekeythe literal text Rekey (case sensitive) +matches at least one character from the set below:
\sa Unicode whitespace character
:the literal : (5810 / 728 / 3A16)
\w+a Unicode word character, repeated at least once
\s+a Unicode whitespace character, repeated at least once
Statethe literal text State (case sensitive) +matches at least one character from the set below:
\sa Unicode whitespace character
:the literal : (5810 / 728 / 3A16)
\w+a Unicode word character, repeated at least once
.+?any Unicode character, repeated at least once
Encryptthe literal text Encrypt (case sensitive) +matches at least one character from the set below:
\sa Unicode whitespace character
:the literal : (5810 / 728 / 3A16)
Group Encrypt(?<Encrypt>[\w-]+) +matches at least one character from the set below:
\wa Unicode word character
-the literal - (4510 / 558 / 2D16)
\s+a Unicode whitespace character, repeated at least once
Hashthe literal text Hash (case sensitive) +matches at least one character from the set below:
\sa Unicode whitespace character
:the literal : (5810 / 728 / 3A16)
\w+a Unicode word character, repeated at least once
.+?any Unicode character, repeated at least once
Auththe literal text Auth (case sensitive) +matches at least one character from the set below:
\sa Unicode whitespace character
:the literal : (5810 / 728 / 3A16)
\w+a Unicode word character, repeated at least once
\s+a Unicode whitespace character, repeated at least once
Lifetimethe literal text Lifetime (case sensitive) +matches at least one character from the set below:
\sa Unicode whitespace character
:the literal : (5810 / 728 / 3A16)
Group Lifetime(?<Lifetime>\d+) \d+a Unicode decimal digit, repeated at least once
.+?any Unicode character, repeated at least once
Lifetimethe literal text Lifetime (case sensitive) \sa Unicode whitespace character
Remainingthe literal text Remaining (case sensitive) +matches at least one character from the set below:
\sa Unicode whitespace character
:the literal : (5810 / 728 / 3A16)
Group LifetimeRemaining(?<LifetimeRemaining>\d+) 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
x modifier: extended. Ignores unescaped whitespace and comments outside character classes