Test, validate and match regular expressions
This regex matches any line that does NOT start with '.git' followed by a word boundary. It uses a negative lookahead at the beginning of each line (enabled by the gm flags) to exclude git-related files and directories from matches. The remainder of the line is captured in group 1. Useful for filtering directory listings or file paths to exclude Git metadata.