\ba Unicode word boundary
casethe literal text case (case sensitive) \s+a Unicode whitespace character, repeated at least once
.*?any Unicode character (except for line terminators), repeated any number of times
\s*a Unicode whitespace character, repeated any number of times
reasonthe literal text reason (case sensitive) \s*a Unicode whitespace character, repeated any number of times
Group Reason(?P<Reason>.*?) .*?any Unicode character (except for line terminators), repeated any number of times
\s*a Unicode whitespace character, repeated any number of times
judgementthe literal text judgement (case sensitive) 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