public static bool IsIPAddress(this string ipAddress) { return Regex.IsMatch(ipAddress, RegexPattern.IP_ADDRESS); }