protected function getTemplateRegexPattern()
    {
        $template = str_replace('.', '\.', $this->template);
        $template = str_replace('*', '[a-zA-Z0-9]*', $template);

        return sprintf('/^%s$/', $template);
    }
protected function getTemplateRegexPattern()
    {
        $template = str_replace('.', '\.', $this->template);
        $template = str_replace('*', '[a-zA-Z0-9]*', $template);

        return sprintf('/^%s$/', $template);
    }
protected function getTemplateRegexPattern ( ) { $ template = str_replace ( '.' , '\.' , $ this -> template ) ; $ template = str_replace ( '*' , '[a-zA-Z0-9]*' , $ template ) ; return sprintf ( '/^%s$/' , $ template ) ; }
Returns the regular expression for a hostname template.

@return string
Returns the regular expression for a hostname template .