Test, validate and match regular expressions
This regex matches Kafka topic names that begin with specific environment or data center prefixes like 'lz', 'dz', or 'sz'. It enforces a strict hierarchical structure of lowercase alphabetic domain names, followed by an alphanumeric topic identifier that allows hyphens. Additionally, it supports an optional subdomain segment and an optional versioning suffix (e.g., '.v1', '.v2'). It is highly useful for standardizing naming conventions across distributed messaging systems.