`?` is for stopping greedy matching, so matching something like `<Space><Enter>blahblahblah` will only match `<Space>` not `<Space><Enter>`. `\n` is there because `.` failed to match it.