fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8.  
  9. String input = @"10009003";
  10. Regex rgx = new Regex(@"[1-9]+0*");
  11. string[] parts = rgx.Matches(input);
  12. Console.WriteLine(parts);
  13. }
  14. }
Compilation error #stdin compilation error #stdout 0.07s 24488KB
stdin
Standard input is empty
compilation info
prog.cs(11,22): error CS0029: Cannot implicitly convert type `System.Text.RegularExpressions.MatchCollection' to `string[]'
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty