fork(3) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. var someNumberString = "10009003";
  9. string s = @"(?<=[1-9]0*)(?=[1-9])";
  10. string[] strArray = Regex.Split(someNumberString, s);
  11. Console.Write(string.Join(" ", strArray));
  12. }
  13. }
Success #stdin #stdout 0.08s 24488KB
stdin
Standard input is empty
stdout
1000 900 3