fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string s = "test;3 régred";
  8. string[] authorsList = Regex.Split(s, "\\s+|[\\p{P}\\p{S}]");
  9. foreach (string q in authorsList)
  10. {
  11. Console.WriteLine(q);
  12. }
  13. }
  14. }
Success #stdin #stdout 0.04s 134592KB
stdin
Standard input is empty
stdout
test
3
régred