fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3. using System.Linq;
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. var tokens= Regex.Matches("com.example.is-this@myname", @"\w+|\W")
  10. .Cast<Match>()
  11. .Select(x=>x.Value)
  12. .Reverse();
  13.  
  14. Console.WriteLine(string.Concat(tokens));
  15. }
  16. }
Success #stdin #stdout 0.08s 24592KB
stdin
Standard input is empty
stdout
myname@this-is.example.com