Test, validate and match regular expressions
Matches Nginx Ingress URLs for a CMS preview API path. It captures a leading wildcard path segment, a locale code like en-US, a remaining path (alphanumeric, dash, underscore, slash), and uses a conditional group to optionally capture a query-string portion (key=value&...). Commonly used in ingress annotations for path routing, locale extraction, and rewrite rules for preview endpoints.