^start of line
Gradethe literal text Grade (case sensitive) \s*a Unicode whitespace character, repeated any number of times
=the literal = (6110 / 758 / 3D16)
\s*a Unicode whitespace character, repeated any number of times
.+any Unicode character (except for line terminators), repeated at least once
Group students(?P<students>[\s\S]+?) +?matches at least one character from the set below:
\sa Unicode whitespace character
\Sany character that is not Unicode whitespace
Positive Lookahead(?=^Grade|\Z) ^start of line
Gradethe literal text Grade (case sensitive) \Zend of string, or before its final line terminator
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