public List<string> xx(string text)
{
text += "";
char[] index_c = { ' ', ',', '>', '<', ')', '(' };
string[] split_c2 = { "@" };
string[] lines = text.Split(split_c2, StringSplitOptions.RemoveEmptyEntries);
List<string> paras = new List<string>();
for (int i = 1; i < lines.Length;i++ )
{
string temp = lines[i].Substring(0, lines[i].IndexOfAny(index_c));
if (paras.IndexOf(temp) == -1)
{
paras.Add(temp);
}
}
return paras;
}
添加新评论0 条评论