using System.Text.RegularExpressions;
public static void Main()
string sentence = "---hello--- hello ------- hello --- bye";
string[] result = Regex.Split(sentence, @"(?<!-)---(?!-)");
foreach (string value in result)
Console.WriteLine(value.Trim());