using System.Collections.Generic;
public static void Main()
string[] words = { "testing", "world", "ראשוני", "new", "hello", "test" };
List<string> newText = new List<string>() {
"This line dosent match",
"This line does match with the word: hello",
"This line dosent match either",
"This line does match with the word: world",
while (i < newText.Count)
string[] lineWords = newText[i].Split(' ');
if (lineWords.Intersect(words).Count() == 0)
for (int n = 0; n < 3; n++)
foreach (string line in newText)