Test, validate and match regular expressions
This regex validates branch names following a simplified GitFlow naming convention. It matches feature branches with numeric IDs (e.g., feature/123), hotfix and release branches with semantic versioning (e.g., release/1.0.0), and the standard develop and master branches. Useful for CI/CD pipelines, pre-commit hooks, or branch protection rules to enforce consistent naming.