{"ScriptPreparationCode":"var tester = /^[-!#$%\u0026\u0027*\u002B\\/0-9=?A-Z^_a-z\u0060{|}~](\\.?[-!#$%\u0026\u0027*\u002B\\/0-9=?A-Z^_a-z\u0060{|}~])*@[a-zA-Z0-9](-*\\.?[a-zA-Z0-9])*\\.[a-zA-Z](-?[a-zA-Z0-9])\u002B$/;\r\nvar email = \u0022valid@gmail.com\u0022\r\nvar email2 = \u0022invalidgmail.com\u0022","TestCases":[{"Name":"regex","Code":"tester.test(\u0022invalidemail\u0022)","IsDeferred":false},{"Name":"Other","Code":"var emailParts = email.split(\u0027@\u0027);\r\n\r\nvar account = emailParts[0];\r\nvar address = emailParts[1];\r\n\r\nif (account.length \u003E 64) return false;\r\n\r\nelse if (address.length \u003E 255) return false;\r\n\r\nvar domainParts = address.split(\u0027.\u0027);\r\n \r\nif (domainParts.some(function (part) {\r\n return part.length \u003E 63;\r\n})) return false;","IsDeferred":false}]}