public function getCompiled()
    {
        if ($this->compiled === null) {
            $regexp = "/^";

            // Method(s)
            $methodIdx = 0;
            foreach($this->methods as $method) {
                $regexp .= "(?:" . strtoupper($method) . ")";
                if (($methodIdx + 1) < count($this->methods)) {
                    $regexp .= "|";
                }
                $methodIdx++;
            }

            // Separator
            $regexp .= "~";

            // Url
            $regexp .= str_replace('/', '\/', $this->match);

            $regexp .= "$/";

            $this->compiled = $regexp;
        }
        return $this->compiled;
    }
public function getCompiled()
    {
        if ($this->compiled === null) {
            $regexp = "/^";

            // Method(s)
            $methodIdx = 0;
            foreach($this->methods as $method) {
                $regexp .= "(?:" . strtoupper($method) . ")";
                if (($methodIdx + 1) < count($this->methods)) {
                    $regexp .= "|";
                }
                $methodIdx++;
            }

            // Separator
            $regexp .= "~";

            // Url
            $regexp .= str_replace('/', '\/', $this->match);

            $regexp .= "$/";

            $this->compiled = $regexp;
        }
        return $this->compiled;
    }
public function getCompiled ( ) { if ( $ this -> compiled === null ) { $ regexp = "/^" ; // Method(s) $ methodIdx = 0 ; foreach ( $ this -> methods as $ method ) { $ regexp .= "(?:" . strtoupper ( $ method ) . ")" ; if ( ( $ methodIdx + 1 ) < count ( $ this -> methods ) ) { $ regexp .= "|" ; } $ methodIdx ++ ; } // Separator $ regexp .= "~" ; // Url $ regexp .= str_replace ( '/' , '\/' , $ this -> match ) ; $ regexp .= "$/" ; $ this -> compiled = $ regexp ; } return $ this -> compiled ; }
Get Compiled Reg Expression key.

@return string
Get Compiled Reg Expression key .