fork(2) download
  1. using System;
  2. using System.Linq;
  3. using System.Text.RegularExpressions;
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. var text = "Write your letter in the sand";
  10. var test = Regex.Replace(text, @"^\w+\W+(\w)", x => x.Groups[1].Value.ToUpper());
  11. Console.WriteLine(test);
  12. }
  13. }
Success #stdin #stdout 0.07s 29436KB
stdin
Standard input is empty
stdout
Your letter in the sand