Return whether input matches regex of ip address. 返回输入是否匹配ip地址的正则表达式。
bool isIP(String input) { return matches(RegexConstants.REGEX_IP, input); }