src/Sulu/Component/Util/WildcardUrlUtil.php
private static function getRegularExpression($portalUrl)
    {
        $patternUrl = rtrim($portalUrl, '/');
        $patternUrl = preg_quote($patternUrl);
        $patternUrl = str_replace(['/', '\*'], ['\/', '([^\/.]+)'], $patternUrl);

        return sprintf('/^%s($|([\/].*)|([.].*))$/', $patternUrl);
    }
private static function getRegularExpression($portalUrl)
    {
        $patternUrl = rtrim($portalUrl, '/');
        $patternUrl = preg_quote($patternUrl);
        $patternUrl = str_replace(['/', '\*'], ['\/', '([^\/.]+)'], $patternUrl);

        return sprintf('/^%s($|([\/].*)|([.].*))$/', $patternUrl);
    }
private static function getRegularExpression ( $ portalUrl ) { $ patternUrl = rtrim ( $ portalUrl , '/' ) ; $ patternUrl = preg_quote ( $ patternUrl ) ; $ patternUrl = str_replace ( [ '/' , '\*' ] , [ '\/' , '([^\/.]+)' ] , $ patternUrl ) ; return sprintf ( '/^%s($|([\/].*)|([.].*))$/' , $ patternUrl ) ; }
Returns regular expression to match given portal-url.

@param string $portalUrl

@return string
Returns regular expression to match given portal - url .