{"ScriptPreparationCode":"var array = [\u0022PHV Versicherung\u0022, \u0022R\u00FCcktrittsversicherung\u0022, \u0022Lebensversicherung\u0022]\r\nvar searchStrings = [\u0022r\u00FCcktritt\u0022, \u0022versicher\u0022, \u0022rung\u0022, \u0022P\u0022]","TestCases":[{"Name":"Regex match","Code":"for(let i = 0; i \u003C searchStrings; i\u002B\u002B) {\r\n array.filter(str =\u003E {\r\n const rgx = new RegExp(searchStrings[i], \u0022i\u0022);\r\n return str.match(rgx);\r\n })\r\n}","IsDeferred":false},{"Name":"String includes with toLowerCase","Code":"for(let i = 0; i \u003C searchStrings; i\u002B\u002B) {\r\n array.filter(str =\u003E {\r\n\treturn str.toLowerCase().includes(searchStrings[i].toLowerCase());\r\n })\r\n}","IsDeferred":false}]}