fiddler 配置rule

假如我有一个输入框, 输入"美女", 点击搜索, 会请求下面的match网址,然后用fiddler指向真实的接口rule

match  :   http://localhost/search.html?keywords=美女;
rule   :   http://baidu.com/search.html?keywords=美女

这样我在AutoResponder可以很简单的配置出来,但是如果我输入的是"手机",或者"笔记本"...我不能这样一条一条的配置啊.

上面的match 可以用正则 regex:http://localhost/search.html?keywords=+.*,
但是rule该怎么配置???

跪求...............

阅读 4.1k
2 个回答

用正则的分组与分组引用

regex:http://localhost/search.html?keywords=(.*)
http://baidu.com/search.html?keywords=$1
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题