string input ="泉州昨天天气";
string[] array = { "昨天", "前天","大前天" };
int i = array.Where(m => input.Contains(m)).Count();
if(i>0){
Console.WriteLine("都过去了,有什么可看的");
}
Console.ReadKey();
正则
string input ="泉州昨天天气";
string[] array = { "昨天", "前天","大前天" };
int i =new Regex(string.Join("|",array)).Matches(input).Count;
if(i>0){
Console.WriteLine("都过去了,有什么可看的");
}
Console.ReadKey();