private function addRegexpRoute($expression, $route)
    {
        $expression = '|^'.str_replace(array('*', '\\'), array('.*', '\\\\'), $expression).'$|i';
        if (array_key_exists($expression, $this->regexpRoutes) && $this->regexpRoutes[$expression] == $route) {
            return false;
        }
        $this->regexpRoutes[$expression] = (string) $route;
        return true;
    }
private function addRegexpRoute($expression, $route)
    {
        $expression = '|^'.str_replace(array('*', '\\'), array('.*', '\\\\'), $expression).'$|i';
        if (array_key_exists($expression, $this->regexpRoutes) && $this->regexpRoutes[$expression] == $route) {
            return false;
        }
        $this->regexpRoutes[$expression] = (string) $route;
        return true;
    }
private function addRegexpRoute ( $ expression , $ route ) { $ expression = '|^' . str_replace ( array ( '*' , '\\' ) , array ( '.*' , '\\\\' ) , $ expression ) . '$|i' ; if ( array_key_exists ( $ expression , $ this -> regexpRoutes ) && $ this -> regexpRoutes [ $ expression ] == $ route ) { return false ; } $ this -> regexpRoutes [ $ expression ] = ( string ) $ route ; return true ; }
Add new regexp route.

@param string $expression RegExp describing route.
@param string $route Route name.

@return bool True, if route has been set, false otherwise.
Add new regexp route .