分割字符串 各位高手!在c#中分割字符串是怎么使用的?给个模版参照一下!谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 string str = "a,b,c,d,e,f,g"; string[] result = str.Split(','); 分割多个 string str = "a,b,c,d,e|f,g"; string[] result = str.Split(new char[] { ',', '|' }); 本帖最后由 caozhy 于 2011-07-16 11:57:23 编辑 string str = "a,b,c,d,e,f,g";string[] result = str.Split(',');result={"a","b","c","d","e","f","g"}; 怎样实现像百度搜索那样的功能 C#如何通过比较文件添加时间获取最新文件的路径 c# WinForm 如何限制使用次数? 诚恳请教!关于iframe,get,post传递参数的安全问题,想不明白 获取DataGridView指定单元格的Style 如果在 IIS 中没有将虚拟目录配置为应用程序,则可能导致此错误 关于XSL嵌套循环中条件判断的问题 DT.Select(sql) 日期like筛选 急,vs2008不能获取gridview中checkbox的状态? C#有类似于MFC的TRACE宏吗 c# 报告问题 高手求解 Winform 多线程的问题,急,没解决不结贴!分数不是问题!!
string str = "a,b,c,d,e,f,g";
string[] result = str.Split(',');
string str = "a,b,c,d,e|f,g";
string[] result = str.Split(new char[] { ',', '|' });
string str = "a,b,c,d,e,f,g";
string[] result = str.Split(',');
result={"a","b","c","d","e","f","g"};