正则匹配切割字符串
string spistr = "i,love.you!memeda";
string[] strArr = Regex.Split(spistr, "[,.!]");
foreach (string s in strArr) {
    Console.WriteLine(s);
}

Split()方法表示切割字符串,以,或,或!区分的


首页 我的博客
粤ICP备17103704号