//替换字符串中出现的ip地址最后一个小数点后的数字为给定的字符 s="asdfs192.168.0.127fadf192.168.124.122asdfsdf"; reg=new RegExp("(?:\d{1,3}\.){3}(\d{1,3}){1}","g"); arr=reg.exec(s);
arr为空啊~~~