using System;
class Sample
{
public static void Main()
{
string s2 = "[divider]" +
"A[divider][divider]" +
"T[divider][divider][divider]" +
"AA[divider][divider]";
string[] stringSeparators = new string[] {"[divider]"};
string[] result;
result = s2.Split(stringSeparators, StringSplitOptions.RemoveEmptyEntries);
Show(result);
}
public static void Show(string[] entries)
{
foreach (string entry in entries)
{
Console.WriteLine(entry);
}
}
}