src/Codeception/Module/Yii1.php
private function getDomainRegex($template, $parameters = [])
    {
        if ($host = parse_url($template, PHP_URL_HOST)) {
            $template = $host;
        }
        if (strpos($template, '<') !== false) {
            $template = str_replace(['<', '>'], '#', $template);
        }
        $template = preg_quote($template);
        foreach ($parameters as $name => $value) {
            $template = str_replace("#$name#", $value, $template);
        }
        return '/^' . $template . '$/u';
    }
private function getDomainRegex($template, $parameters = [])
    {
        if ($host = parse_url($template, PHP_URL_HOST)) {
            $template = $host;
        }
        if (strpos($template, '<') !== false) {
            $template = str_replace(['<', '>'], '#', $template);
        }
        $template = preg_quote($template);
        foreach ($parameters as $name => $value) {
            $template = str_replace("#$name#", $value, $template);
        }
        return '/^' . $template . '$/u';
    }
private function getDomainRegex ( $ template , $ parameters = [ ] ) { if ( $ host = parse_url ( $ template , PHP_URL_HOST ) ) { $ template = $ host ; } if ( strpos ( $ template , '<' ) !== false ) { $ template = str_replace ( [ '<' , '>' ] , '#' , $ template ) ; } $ template = preg_quote ( $ template ) ; foreach ( $ parameters as $ name => $ value ) { $ template = str_replace ( "#$name#" , $ value , $ template ) ; } return '/^' . $ template . '$/u' ; }
Getting domain regex from rule template and parameters

@param string $template
@param array $parameters
@return string
Getting domain regex from rule template and parameters