string sql = "aaaaaaaaaa{@}bbbbbbbbbb{@}ccccccc#cccccc";
//1、单组合{@}拆分
string[] separator = new string[] { "{@}" };
//2、多组合{@}、#拆分
string[] separator1 = new string[] { "{@}", "#" };
string[] arry = sql.Split(separator1, StringSplitOptions.RemoveEmptyEntries);
时间: 2024-10-20 15:31:06