jagerzhang opened a new issue #5451: URL: https://github.com/apache/apisix/issues/5451
### Issue description 比如Nginx自带的响应内容替换库可以替换局部内容:http://nginx.org/en/docs/http/ngx_http_sub_module.html ``` sub_filter '<a href="http://127.0.0.1:8080/' '<a href="https://$host/'; ``` 比如还有个支持正则替换的库(印象中Openresty已默认支持):ngx_http_substitutions_filter_module,可以通过正则表达式来替换内容: ``` subs_filter_types text/html text/css text/xml; subs_filter st(\d*).example.com $1.example.com ir; subs_filter a.example.com s.example.com; subs_filter http://$host https://$host; ``` 但是我看APISIX的 response-rewrite插件文档,好像只能支持完整替换,相当于直接将所有响应都换成插件设置的返回,并不支持部分内容替换,想问下这个插件是否支持部分替换或正则替换?如果不支持,APISIX有没有其他解决方案呢? ### Environment - apisix version (cmd: `apisix version`): 2.10.0 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
