Return whether input matches regex of ip address.
static bool isIP(String input) { return matches(regexIp, input); }