FIDDLER高手帮我看看,正则表达式问题
var range = "ab=9999";
var newstr=range.replace(/b=\d+/g,"b=1");
alert(newstr)
在网页里成功显示ab=1
是我想要的结果
但是在FIDDLER里,
oSession.utilReplaceInResponse(/b =\d+/g,'b = 1');
却没替换了
如果改成
oSession.utilReplaceInResponse('ab=9999",'b = 1');
就对了
说明再FIDDLER里面,正则没起作用
为什么