using System.Text.RegularExpressions;
public static void Main()
string pattern = @"\b\w+es\b";
string input = "Who writes these notes?";
var matches = input.Matches(pattern);
foreach (Match match in matches)
Console.WriteLine("Found '{0}' at position {1}",
match.Value, match.Index);