protected static function find($route, $path, array &$matches)
    {
        $re = Regex::parse($route);

        if ($re !== false && preg_match('#^' . $re . '$#', $path, $matches)) {
            array_shift($matches);
            return true;
        }

        return false;
    }
protected static function find($route, $path, array &$matches)
    {
        $re = Regex::parse($route);

        if ($re !== false && preg_match('#^' . $re . '$#', $path, $matches)) {
            array_shift($matches);
            return true;
        }

        return false;
    }
protected static function find ( $ route , $ path , array & $ matches ) { $ re = Regex :: parse ( $ route ) ; if ( $ re !== false && preg_match ( '#^' . $ re . '$#' , $ path , $ matches ) ) { array_shift ( $ matches ) ; return true ; } return false ; }
Get params from routes using regex

@param string $route
@param string $path
@param array  $matches
@return bool
Get params from routes using regex