Test, validate and match regular expressions
Matches lines that begin with a non-space character, contain at least one space, and end with a non-space character optionally followed by a single trailing space. Useful for validating formatted text lines, checking sentence structure, or ensuring lines have proper spacing without leading whitespace or excessive trailing spaces.