^start of string
access-listthe literal text access-list (case sensitive) \s+any whitespace character, repeated at least once
.*?any character (except for line terminators), repeated any number of times
\s+any whitespace character, repeated at least once
Group 2(remark|extended\s+.*?) remarkthe literal text remark (case sensitive) 2nd Alternativeextended\s+.*? extendedthe literal text extended (case sensitive) \s+any whitespace character, repeated at least once
.*?any character (except for line terminators), repeated any number of times
$end of string, or before its final line terminator