日期:2014-05-18 浏览次数:20782 次
string str = @"wearaasdad$$$$dasdasdasd$$$dasdasdad a$$$$dasdgfdsgs$dasd$$$$"; string[] xstr=str.Split(new string[] { @"$$$$" }, StringSplitOptions.RemoveEmptyEntries);
------解决方案--------------------
额,看错了,没注意是四个$$$$
2楼正解
------解决方案--------------------
string str = "wearaasdad$$$$dasdasdasd$$$dasdasdad a$$$$dasdgfdsgs$dasd$$$$"; string[] result=Regex.Split(str,@"\$\$\$\$");