Here is how I would write a function to make an acronym in Java style:
string makeAcronym(string str) { string result = \"\"; for (in
You can do this quite nicely using a Regex/Linq combo:
String .Join("", Regex .Matches("this is a test",@"(?<=^| )\w") .Cast() .Select(m=>m.Value) .ToArray() )