81,122
社区成员




String strIp = "121.189.132.123";
strIp = strIp.replaceAll("\\d+.\\d+$", "*.*");
public changeIp(String strIp)
{
String String[] strIps=strIp.split(".");
String strRet=strIps[0]+"."+strIps[1]+".*.*";
return srtRet;
}
matchee = matchee.replaceAll("^([01]?\\d\\d?|2[0-4][0-9]|25[0-5])\\.([01]?\\d\\d?|2[0-4][0-9]|25[0-5])\\.([01]?\\d\\d?|2[0-4][0-9]|25[0-5])\\.([01]?\\d\\d?|2[0-4][0-9]|25[0-5])$", "$1\\.$2\\.*\\.*");