{"ScriptPreparationCode":"var value = \u0022192.25.23.1\u0022","TestCases":[{"Name":"regex ","Code":"// Check if value is an IP address\r\nif (/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(value)) {\r\n return true;\r\n}","IsDeferred":false},{"Name":"split","Code":"var parts = value.split(\u0022.\u0022);\r\n if (parts.length !== 4) {\r\n return false;\r\n }\r\n for (var i = 0; i \u003C parts.length; i\u002B\u002B) {\r\n var part = parseInt(parts[i]);\r\n if (isNaN(part) || part \u003C 0 || part \u003E 255) {\r\n return false;\r\n }\r\n }\r\n return true;","IsDeferred":false}]}