Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
May-Sweet opened this issue May 10, 2024 · 1 comment
Open

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

May-Sweet opened this issue May 10, 2024 · 1 comment

Comments

@May-Sweet
Copy link

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

@avwo
Copy link
Owner

avwo commented May 10, 2024

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

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants