using System;
using System.Text.RegularExpressions;
publicclass Example
{
publicstaticvoid Main()
{
string pattern = @"\b[A-Z]\w*\b";
string input = "this is a test";
foreach (Match match in Regex.Matches(input, pattern))
Console.WriteLine(match.Value);
}
}