Route.php
function parseRegular($pathInfo)
    {
        if($this->caseSensitive === null || $this->caseSensitive)
            $case = '';
        else
            $case = 'i';

        foreach($this->_rules as $pattern => $v)
        {
            preg_match('@'.$pattern.'@'.$case, $pathInfo, $match);
            if(!empty($match))
            {
                $len = count($match);
                for($i=1;$i<$len;$i++) {
                    $v = str_replace('$'.$i, $match[$i], $v);
                }
                $pathInfo = $v;
                break;
            }
        }

        return $pathInfo;
    }
function parseRegular($pathInfo)
    {
        if($this->caseSensitive === null || $this->caseSensitive)
            $case = '';
        else
            $case = 'i';

        foreach($this->_rules as $pattern => $v)
        {
            preg_match('@'.$pattern.'@'.$case, $pathInfo, $match);
            if(!empty($match))
            {
                $len = count($match);
                for($i=1;$i<$len;$i++) {
                    $v = str_replace('$'.$i, $match[$i], $v);
                }
                $pathInfo = $v;
                break;
            }
        }

        return $pathInfo;
    }
支持正则
@param  [type] $pathInfo [description]
@return [type]           [description]