var a=['http://huantongcx.b2b.test.com/shop/businwindow-1-627954.html','http://huantongcx.mntb2b.test.com/shop/businwindow-1-627954.html','http://huantongcx.b2b.test.com']
var reg=/^(?!.*mntb2b\.test\.com.*$).*b2b\.test\.com.*$/;
for(var i in a){
alert(reg.test(a[i]));
}
这样?