用另一個字串拆分字串

string str = "this--is--a--complete--sentence";
string[] tokens = str.Split(new[] { "--" }, StringSplitOptions.None);

結果:

[this,is,a,complete,sentence]