Build, test, and debug regular expressions
This regex validates Git commit messages based on a structured specification similar to Conventional Commits. It extracts the commit type (such as feat, fix, docs, or chore), an optional issue identifier in parentheses, and a subject line that must start with a capital letter or number. It also enforces that the subject does not end with a period and allows for an optional, multi-line body separated by a blank line.