Returns whether the input matches the IP address regex.
static bool isIP(String input) { return matches(regexIp, input); }