using System.Collections.Generic;
using System.Text.RegularExpressions;
public static void Main()
List<string> Teachers_Group = new List<string>
List<string> domainuser_groups = new List<string>
bool amITeacher = domainuser_groups.Where(k => Teachers_Group.Any(t => Regex.IsMatch(k, @"\w{3}\" + t))).Any();