using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Net;
using System.Text;
using System.Configuration;
using System.Text.RegularExpressions;
namespace ProgramConsole
{
public class Program
{
public static void Main(string[] args)
{
string value = "Page1: This is my new Page1 -------- Page2: This is my new Page 2 -------- Page3: This is my new Page3 -------- ";
string[] delimiters = new string[] { " -------- " };
string[] parts = value.Split(delimiters, StringSplitOptions.RemoveEmptyEntries);
foreach (var item in parts)
{
Console.WriteLine(item);
}
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnM7CnVzaW5nIFN5c3RlbS5Db2xsZWN0aW9ucy5HZW5lcmljOwp1c2luZyBTeXN0ZW0uR2xvYmFsaXphdGlvbjsKdXNpbmcgU3lzdGVtLkRpYWdub3N0aWNzOwp1c2luZyBTeXN0ZW0uSU87CnVzaW5nIFN5c3RlbS5MaW5xOwp1c2luZyBTeXN0ZW0uTGlucS5FeHByZXNzaW9uczsKdXNpbmcgU3lzdGVtLk5ldDsKdXNpbmcgU3lzdGVtLlRleHQ7CnVzaW5nIFN5c3RlbS5Db25maWd1cmF0aW9uOwp1c2luZyBTeXN0ZW0uVGV4dC5SZWd1bGFyRXhwcmVzc2lvbnM7CgpuYW1lc3BhY2UgUHJvZ3JhbUNvbnNvbGUKewogICAgcHVibGljIGNsYXNzIFByb2dyYW0KICAgIHsKICAgICAgICBwdWJsaWMgc3RhdGljIHZvaWQgTWFpbihzdHJpbmdbXSBhcmdzKQogICAgICAgIHsKICAgICAgICAgICAgc3RyaW5nIHZhbHVlID0gICJQYWdlMTogVGhpcyBpcyBteSBuZXcgUGFnZTEgICAgIC0tLS0tLS0tICAgICBQYWdlMjogVGhpcyBpcyBteSBuZXcgUGFnZSAyICAgICAtLS0tLS0tLSAgICAgUGFnZTM6IFRoaXMgaXMgbXkgbmV3IFBhZ2UzICAgICAtLS0tLS0tLSAgICAgIjsKIC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