fork download
  1. using System;
  2. using System.Linq;
  3. using System.Text.RegularExpressions;
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. string[] values = Regex
  9. .Matches("MY. LIMITED. COMPANY. (52100000 / 58447000)", @"[\w.-[\d]][\w.\s-[\d]]+|[0-9]+")
  10. .OfType<Match>()
  11. .Select(match => match.Value.Trim())
  12. .ToArray();
  13. foreach (var s in values)
  14. Console.WriteLine(s);
  15. }
  16. }
Success #stdin #stdout 0.03s 30720KB
stdin
Standard input is empty
stdout
MY. LIMITED. COMPANY.
52100000
58447000