string strTest1 = ""; string strTest2 = ""; string[] strRe = System.Text.RegularExpressions.Regex.Split(“字符串”, @"要分割字符"); strTest1 = strRe[0].Trim().ToString(); strTest2 = strRe[1].Trim().ToString(); string test=“123A|1231”.Replace("|","");
本文共 370 字,大约阅读时间需要 1 分钟。
string strTest1 = ""; string strTest2 = ""; string[] strRe = System.Text.RegularExpressions.Regex.Split(“字符串”, @"要分割字符"); strTest1 = strRe[0].Trim().ToString(); strTest2 = strRe[1].Trim().ToString(); string test=“123A|1231”.Replace("|","");
转载于:https://www.cnblogs.com/guozhe/p/3469236.html