fork(1) download
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.Globalization;
  5. using System.Diagnostics;
  6. using System.IO;
  7. using System.Linq;
  8. using System.Linq.Expressions;
  9. using System.Net;
  10. using System.Text;
  11. using System.Configuration;
  12. using System.Text.RegularExpressions;
  13.  
  14. namespace ProgramConsole
  15. {
  16. public class Program
  17. {
  18. public static void Main(string[] args)
  19. {
  20. string value = "Page1: This is my new Page1 -------- Page2: This is my new Page 2 -------- Page3: This is my new Page3 -------- ";
  21. string[] delimiters = new string[] { " -------- " };
  22. string[] parts = value.Split(delimiters, StringSplitOptions.RemoveEmptyEntries);
  23.  
  24. foreach (var item in parts)
  25. {
  26. Console.WriteLine(item);
  27. }
  28. }
  29. }
  30. }
Success #stdin #stdout 0.05s 34816KB
stdin
Standard input is empty
stdout
Page1: This is my new Page1
Page2: This is my new Page 2
Page3: This is my new Page3