\s*any whitespace character, repeated any number of times
\S+any non-whitespace character, repeated at least once
Non-Capturing Group(?:\s+\S+){0,3} {0,3}repeats the group contents below between 0 and 3 times:
\s+any whitespace character, repeated at least once
\S+any non-whitespace character, repeated at least once
\s*any whitespace character, repeated any number of times
$end of string, or before its final line terminator