2012年5月3日
摘要: 1、用字符串分隔: using System.Text.RegularExpressions;string str="aaajsbbbjsccc";string[] sArray=Regex.Split(str,"js",RegexOptions.IgnoreCase... 阅读全文
posted @ 2012-05-03 15:27 swarb 阅读(672) 评论(0) 推荐(0) 编辑
摘要: IndexOf() 查找字串中指定字符或字串首次出现的位置,返首索引值,如: str1.IndexOf("字"); //查找“字”在str1中的索引值(位置) str1.IndexOf("字串");//查找“字串”的第一个字符在str1中的索引值(位置) str1.I... 阅读全文
posted @ 2012-05-03 09:47 swarb 阅读(151) 评论(0) 推荐(0) 编辑