fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. namespace regextest
  5. {
  6. class Program
  7. {
  8. static void Main(string[] args)
  9. {
  10. string input = "a;b; ;c;;;d";
  11. string[] values = Regex.Split(input, @";+");
  12. foreach (var value in values)
  13. Console.WriteLine(value);
  14. }
  15. }
  16. }
  17.  
Success #stdin #stdout 0.06s 38224KB
stdin
Standard input is empty
stdout
a
b
 
c
d