List of utility methods to do IP Address Check
boolean | isIp4Address(String text) is Ip Address if (TextUtils.isEmpty(text)) { return false; Pattern pattern = Pattern.compile(regIpAddress); Matcher macher = pattern.matcher(text); return macher.matches(); |
boolean | isSipAddress(String numberOrAddress) is Sip Address Pattern p = Pattern.compile(sipAddressRegExp);
Matcher m = p.matcher(numberOrAddress);
return m != null && m.matches();
|
boolean | isStrictSipAddress(String numberOrAddress) is Strict Sip Address Pattern p = Pattern.compile(strictSipAddressRegExp);
Matcher m = p.matcher(numberOrAddress);
return m != null && m.matches();
|