fork(1) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string connectionmsg = "Verified GUID (1234567890abcdefghhij) of player #1 playername";
  8. string pattern = @"#[1-9]+\s+";
  9. string[] playername = Regex.Split(connectionmsg, pattern);
  10. Console.WriteLine(playername[1]);
  11. }
  12. }
Success #stdin #stdout 0.1s 24912KB
stdin
Standard input is empty
stdout
playername