Test, validate and match regular expressions
Tokenizes nginx server_name-style hostnames into named capture groups: an optional 'feature-*' subdomain and/or an 'api.' subdomain, a single-label namespace subdomain, or a catch-all multi-label subdomain (noMatch), followed by the base domain (e.g., example.com). Useful for parsing Host headers or routing configuration to direct feature-branch deploys, API traffic, and namespaced tenants to the correct upstream. Runs with global/multiline flags for batch processing.