شاید این کمک کنه :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace Console_Student
{
class Program
{
static void Main(string[] args)
{
Console.Write("Number of Student?");
int num = int.Parse(Console.ReadLine());
List<Students> lst = new List<Students>();
string pattern = @"\b((\w*[aouei]\w*){2,})\b";
Regex regex = new Regex(pattern);
for (int i = 0; i < num; i++)
{
Students st = new Students();
Console.Write("Name?");
st.Name = Console.ReadLine();
Console.Write("Family?");
st.Family = Console.ReadLine();
Console.Write("ID?");
st.ID = int.Parse(Console.ReadLine());
lst.Add(st);
}
foreach (Students st in lst)
{
foreach (Match match in regex.Matches(st.Name))
{
Console.WriteLine("match: {0}", match.Value);
}
}
Console.Read();
}
}
class Students
{
public int ID;
public string Name, Family;
}
}