{"ScriptPreparationCode":"var entries = [{\r\n \u0022data\u0022: \u0022random_string_one\u0022,\r\n \u0022comment\u0022: \u0022{\\\u0022random_other_field_one\\\u0022:\\\u0022this is a bunch of sample data\\\u0022,\\\u0022random_other_field_two\\\u0022:\\\u0022this is another set of sample data\\\u0022,\\\u0022random_other_field_three\\\u0022:\\\u0022this is another bit of sample data\\\u0022,\\\u0022random_other_field_four\\\u0022:\\\u0022this is another glob of sample data\\\u0022,\\\u0022segregationRequirement\\\u0022:2}\u0022\r\n },\r\n {\r\n \u0022data\u0022: \u0022random_string_one\u0022,\r\n \u0022comment\u0022: \u0022{\\\u0022random_other_field_one\\\u0022:\\\u0022this is a bunch of sample data\\\u0022,\\\u0022random_other_field_two\\\u0022:\\\u0022this is another set of sample data\\\u0022,\\\u0022random_other_field_three\\\u0022:\\\u0022this is another bit of sample data\\\u0022,\\\u0022random_other_field_four\\\u0022:\\\u0022this is another glob of sample data\\\u0022,\\\u0022segregationRequirement\\\u0022:221}\u0022\r\n },\r\n {\r\n \u0022data\u0022: \u0022random_string_one\u0022,\r\n \u0022comment\u0022: \u0022{\\\u0022random_other_field_one\\\u0022:\\\u0022this is a bunch of sample data\\\u0022,\\\u0022random_other_field_two\\\u0022:\\\u0022this is another set of sample data\\\u0022,\\\u0022random_other_field_three\\\u0022:\\\u0022this is another bit of sample data\\\u0022,\\\u0022random_other_field_four\\\u0022:\\\u0022this is another glob of sample data\\\u0022,\\\u0022segregationRequirement\\\u0022:2}\u0022\r\n },\r\n {\r\n \u0022data\u0022: \u0022random_string_one\u0022,\r\n \u0022comment\u0022: \u0022{\\\u0022random_other_field_one\\\u0022:\\\u0022this is a bunch of sample data\\\u0022,\\\u0022random_other_field_two\\\u0022:\\\u0022this is another set of sample data\\\u0022,\\\u0022random_other_field_three\\\u0022:\\\u0022this is another bit of sample data\\\u0022,\\\u0022random_other_field_four\\\u0022:\\\u0022this is another glob of sample data\\\u0022,\\\u0022segregationRequirement\\\u0022:2}\u0022\r\n },\r\n {\r\n \u0022data\u0022: \u0022random_string_one\u0022,\r\n \u0022comment\u0022: \u0022{\\\u0022random_other_field_one\\\u0022:\\\u0022this is a bunch of sample data\\\u0022,\\\u0022random_other_field_two\\\u0022:\\\u0022this is another set of sample data\\\u0022,\\\u0022random_other_field_three\\\u0022:\\\u0022this is another bit of sample data\\\u0022,\\\u0022random_other_field_four\\\u0022:\\\u0022this is another glob of sample data\\\u0022,\\\u0022segregationRequirement\\\u0022:221}\u0022\r\n },\r\n {\r\n \u0022data\u0022: \u0022random_string_one\u0022,\r\n \u0022comment\u0022: \u0022{\\\u0022random_other_field_one\\\u0022:\\\u0022this is a bunch of sample data\\\u0022,\\\u0022random_other_field_two\\\u0022:\\\u0022this is another set of sample data\\\u0022,\\\u0022random_other_field_three\\\u0022:\\\u0022this is another bit of sample data\\\u0022,\\\u0022random_other_field_four\\\u0022:\\\u0022this is another glob of sample data\\\u0022,\\\u0022segregationRequirement\\\u0022:2}\u0022\r\n },\r\n {\r\n \u0022data\u0022: \u0022random_string_one\u0022,\r\n \u0022comment\u0022: \u0022{\\\u0022random_other_field_one\\\u0022:\\\u0022this is a bunch of sample data\\\u0022,\\\u0022random_other_field_two\\\u0022:\\\u0022this is another set of sample data\\\u0022,\\\u0022random_other_field_three\\\u0022:\\\u0022this is another bit of sample data\\\u0022,\\\u0022random_other_field_four\\\u0022:\\\u0022this is another glob of sample data\\\u0022,\\\u0022segregationRequirement\\\u0022:221}\u0022\r\n },\r\n {\r\n \u0022data\u0022: \u0022random_string_one\u0022,\r\n \u0022comment\u0022: \u0022{\\\u0022random_other_field_one\\\u0022:\\\u0022this is a bunch of sample data\\\u0022,\\\u0022random_other_field_two\\\u0022:\\\u0022this is another set of sample data\\\u0022,\\\u0022random_other_field_three\\\u0022:\\\u0022this is another bit of sample data\\\u0022,\\\u0022random_other_field_four\\\u0022:\\\u0022this is another glob of sample data\\\u0022,\\\u0022segregationRequirement\\\u0022:2}\u0022\r\n },\r\n {\r\n \u0022data\u0022: \u0022random_string_one\u0022,\r\n \u0022comment\u0022: \u0022{\\\u0022random_other_field_one\\\u0022:\\\u0022this is a bunch of sample data\\\u0022,\\\u0022random_other_field_two\\\u0022:\\\u0022this is another set of sample data\\\u0022,\\\u0022random_other_field_three\\\u0022:\\\u0022this is another bit of sample data\\\u0022,\\\u0022random_other_field_four\\\u0022:\\\u0022this is another glob of sample data\\\u0022,\\\u0022segregationRequirement\\\u0022:221}\u0022\r\n },\r\n {\r\n \u0022data\u0022: \u0022random_string_one\u0022,\r\n \u0022comment\u0022: \u0022{\\\u0022random_other_field_one\\\u0022:\\\u0022this is a bunch of sample data\\\u0022,\\\u0022random_other_field_two\\\u0022:\\\u0022this is another set of sample data\\\u0022,\\\u0022random_other_field_three\\\u0022:\\\u0022this is another bit of sample data\\\u0022,\\\u0022random_other_field_four\\\u0022:\\\u0022this is another glob of sample data\\\u0022,\\\u0022segregationRequirement\\\u0022:221}\u0022\r\n },\r\n {\r\n \u0022data\u0022: \u0022random_string_one\u0022,\r\n \u0022comment\u0022: \u0022{\\\u0022random_other_field_one\\\u0022:\\\u0022this is a bunch of sample data\\\u0022,\\\u0022random_other_field_two\\\u0022:\\\u0022this is another set of sample data\\\u0022,\\\u0022random_other_field_three\\\u0022:\\\u0022this is another bit of sample data\\\u0022,\\\u0022random_other_field_four\\\u0022:\\\u0022this is another glob of sample data\\\u0022,\\\u0022segregationRequirement\\\u0022:2}\u0022\r\n },\r\n {\r\n \u0022data\u0022: \u0022random_string_one\u0022,\r\n \u0022comment\u0022: \u0022{\\\u0022random_other_field_one\\\u0022:\\\u0022this is a bunch of sample data\\\u0022,\\\u0022random_other_field_two\\\u0022:\\\u0022this is another set of sample data\\\u0022,\\\u0022random_other_field_three\\\u0022:\\\u0022this is another bit of sample data\\\u0022,\\\u0022random_other_field_four\\\u0022:\\\u0022this is another glob of sample data\\\u0022,\\\u0022segregationRequirement\\\u0022:2}\u0022\r\n },\r\n {\r\n \u0022data\u0022: \u0022random_string_one\u0022,\r\n \u0022comment\u0022: \u0022{\\\u0022random_other_field_one\\\u0022:\\\u0022this is a bunch of sample data\\\u0022,\\\u0022random_other_field_two\\\u0022:\\\u0022this is another set of sample data\\\u0022,\\\u0022random_other_field_three\\\u0022:\\\u0022this is another bit of sample data\\\u0022,\\\u0022random_other_field_four\\\u0022:\\\u0022this is another glob of sample data\\\u0022,\\\u0022segregationRequirement\\\u0022:2}\u0022\r\n },\r\n {\r\n \u0022data\u0022: \u0022random_string_one\u0022,\r\n \u0022comment\u0022: \u0022{\\\u0022random_other_field_one\\\u0022:\\\u0022this is a bunch of sample data\\\u0022,\\\u0022random_other_field_two\\\u0022:\\\u0022this is another set of sample data\\\u0022,\\\u0022random_other_field_three\\\u0022:\\\u0022this is another bit of sample data\\\u0022,\\\u0022random_other_field_four\\\u0022:\\\u0022this is another glob of sample data\\\u0022,\\\u0022segregationRequirement\\\u0022:221}\u0022\r\n },\r\n {\r\n \u0022data\u0022: \u0022random_string_one\u0022,\r\n \u0022comment\u0022: \u0022{\\\u0022random_other_field_one\\\u0022:\\\u0022this is a bunch of sample data\\\u0022,\\\u0022random_other_field_two\\\u0022:\\\u0022this is another set of sample data\\\u0022,\\\u0022random_other_field_three\\\u0022:\\\u0022this is another bit of sample data\\\u0022,\\\u0022random_other_field_four\\\u0022:\\\u0022this is another glob of sample data\\\u0022,\\\u0022segregationRequirement\\\u0022:2}\u0022\r\n }\r\n];","TestCases":[{"Name":"JSON","Code":"const arr = [];\r\nfor (const entry of entries) {\r\n const value = JSON.parse(entry.comment);\r\n arr.push(value.segregationRequirement);\r\n}","IsDeferred":false},{"Name":"Regex","Code":"const arr = [];\r\nconst re = /\u0022segregationRequirement\u0022:\\s*(\\d\u002B)[,}]/;\r\nfor (const entry of entries) {\r\n const match = entry.comment.match(re)\r\n arr.push(match[1]);\r\n}","IsDeferred":false},{"Name":"String search","Code":"const arr = [];\r\nfor (const entry of entries) {\r\n const found = entry.comment.includes(\u0027\u0022segregationRequirement\u0022:2\u0027);\r\n arr.push(found);\r\n}","IsDeferred":false},{"Name":"indexOf","Code":"const arr = [];\r\nfor (const entry of entries) {\r\n const found = entry.comment.indexOf(\u0027\u0022segregationRequirement\u0022:2\u0027) !== -1;\r\n arr.push(found);\r\n}","IsDeferred":false}]}