Test, validate and match regular expressions
Matches Git branch names for the master branch or versioned release branches (e.g., release/1, release/2.1.3), with an optional 'refs/heads/' prefix to accommodate full Git reference paths. The release version uses a dotted numeric format like major.minor.patch. Commonly used in CI/CD pipeline triggers to run builds or deployments only on the master and release branches.