avwo / whistle

HTTP, HTTP2, HTTPS, Websocket debugging proxy
https://wproxy.org/
MIT License
13.99k stars 1.08k forks source link

规则求教:匹配版本号 #1073

Closed May-Sweet closed 3 weeks ago

May-Sweet commented 1 month ago

如下,可以匹配这个接口下所有的请求吗?(域名和版本号可能会变) https://xxx.xxxapi.rabbit.com/3/8.0.77/commentapi/getSelfByBizKey https://xxx.xxxapi.rabbit.com/1/8.0.78/commentapi/getSelfByBizKey

avwo commented 1 month ago

通配符 ^***/commentapi/getSelfByBizKey 或正则 /commentapi/getSelfByBizKey/,如果需要获取后面的路径可以通过以下方式:

^***/commentapi/getSelfByBizKey/*** file:///xxx/$1
或
//commentapi/getSelfByBizKey/(.*)/ file:///xxx/$1

参考:https://wproxy.org/whistle/pattern.html