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;
    }