Test, validate and match regular expressions
This regex extracts structured values from hostnames containing ".apps", breaking them into components like application name, environment indicators, and domain suffix. It's particularly useful for parsing OpenShift or Kubernetes application routes where hostnames follow patterns like `app-env.apps.cluster.domain.com`. The pattern captures the pre-apps segment, optional hyphenated identifiers, the .apps marker, and the remaining domain path.