Test, validate and match regular expressions
Matches any string starting with the literal prefix 'stage-' and captures everything following it. The first group captures the 'stage-' prefix, while the second group captures the remainder of the line, such as extracting 'build' or 'deploy' from 'stage-build' or 'stage-deploy'. Commonly used in CI/CD pipelines or build scripts to identify and parse stage identifiers from branch names, tags, or log entries.