private function createRegEx($uriTemplate)
    {
        $pattern = str_replace($this->getPlaceholders(), $this->getPatterns(), $uriTemplate);

        // Match everything after question mark, if present
        $pattern .= '(\?(.*))?';

        return '~^' . $pattern . '$~i';
    }
private function createRegEx($uriTemplate)
    {
        $pattern = str_replace($this->getPlaceholders(), $this->getPatterns(), $uriTemplate);

        // Match everything after question mark, if present
        $pattern .= '(\?(.*))?';

        return '~^' . $pattern . '$~i';
    }
private function createRegEx ( $ uriTemplate ) { $ pattern = str_replace ( $ this -> getPlaceholders ( ) , $ this -> getPatterns ( ) , $ uriTemplate ) ; // Match everything after question mark, if present $ pattern .= '(\?(.*))?' ; return '~^' . $ pattern . '$~i' ; }
Creates a regular expression according to URI template

@param string $uriTemplate string
@return string Prepared regular expression
Creates a regular expression according to URI template