?repeats the group contents below at most once:
\s*any whitespace character, repeated any number of times
key1the literal text key1 (case sensitive) \s+any whitespace character, repeated at least once
.+any character (except for line terminators), repeated at least once