using System;
using System.Text.RegularExpressions;
class Program
{
static void Main() {
string s = "c php csharp java cpp python cobol swift";
string regularExpression = @"\bc\w*";
MatchCollection mc = Regex.Matches(s, regularExpression);
foreach (Match match in mc) {
Console.WriteLine(match);
}
}
}
/*
run:
c
csharp
cpp
cobol
*/