Flag `s` allows `.` to match the newline character.  This allows the begin/end statements to include newlines.