如何用多个字符串来切分字符串

string str="我是小松鼠hsgg()jsjg776sdf";

string [] sArray=Regex.Split(str,"[hs][()]",RegexOptions.IgnoreCase);

int i =1;

foreach (string s in sArray)

{

       Console.WriteLine("i,{0},len:{1},s:{2}",I++,s.length,s);

}

Console.WriteLine("end");

Console.Red();

原文地址:https://www.cnblogs.com/just09161018/p/4605318.html