or you can use this
/**
* @param originalIp
* @author Setekh
*/
public static String formatIp(String originalIp)
{
String finalIp = "";
String[] iparray = originalIp.split(".");
if(iparray.length < 3)
return "Util.formatIp:Incorrect Ip lenght!";
//255.*.*.255
finalIp = iparray[0] +".*.*."+iparray[3];
return finalIp;
}
@VaGina: Sunt pe msn XD