isIP method

bool isIP()

Return whether input matches regex of ip address.

Implementation

bool isIP() {
  return matches(regexIp);
}