Full Site Version
using System;
using System.Text.RegularExpressions;
using System.Linq;
public class Program
{
public static void Main()
string[] animals = {"Cat", "Alligator", "fox", "donkey", "Cat", "alligator"};
var animalsWithCapitalLetter = animals.Count(s =>
return Regex.IsMatch(s, "^[A-Z]");
});
Console.Write(animalsWithCapitalLetter);
}