src/Leevel/Router/OpenApiRouter.php
protected function parseRouterRegex(string $path, array $router): array
    {
        list($router['regex'], $router['var']) = $this->ruleRegex($path, $router);

        return $router;
    }
protected function parseRouterRegex(string $path, array $router): array
    {
        list($router['regex'], $router['var']) = $this->ruleRegex($path, $router);

        return $router;
    }
解析路由正则.

@param string $path
@param array  $router

@return array