比如 a|b|c|d|e.....
如何获取分隔符的数量
string.split
string mm = "a|b|c|d|e|"; string[] kk = mm.Split("|".ToCharArray(), StringSplitOptions.None); int count = kk.Length - 1; Response.Write(count);