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