public function getUrlRegex(): string
    {
        $aSupportedLocales = $this->getSupportedLocales();
        $aUrlLocales       = [];

        foreach ($aSupportedLocales as $oLocale) {
            $sVanity       = $this->getUrlSegment($oLocale);
            $aUrlLocales[] = $sVanity;
        }

        return '/^(' . implode('|', array_filter($aUrlLocales)) . ')?(\/)?(.*)$/';
    }