Test, validate and match regular expressions
Validates structured branch names composed of a branch type (hotfix, feature, or maint), a major.minor version number with optional '-test' suffix, and a branch name of 1-30 word characters, hyphens, or dots — e.g., hotfix/1.2-test/fix-login. It uses named capture groups (branchType, tasMaMi, isTest, branchName) for easy extraction of each part. With the gm flags, it validates multiple branch names across lines, making it ideal for CI/CD pipelines or Git hooks enforcing branch naming conventions.