摘要: 单个替换:string str = "aaaaaaa#bbbbbb#aaaaaa";替换#bbbbbb#为ccccccString ii = str.Replace("#bbbbbb#", "cccccc");MessageBox.Show(ii.ToString());多重替换:string str="aaaaa#bbbbb#aaaaaa#cccccc#aaaaa";替换#bbbbbb#为ddd... 阅读全文
posted @ 2007-07-10 18:07 jenner 阅读(305) 评论(0) 推荐(0) 编辑
摘要: string str="aaaa^bbbb^cccc^dddd"; string [] mystr=str.Split('^'); foreach (string i in mystr) { Response .Write (i.ToString()+""); }输出为:aaaabbbbccccddddResponse .Write (mystr.Length.ToStrin... 阅读全文
posted @ 2007-07-10 14:12 jenner 阅读(185) 评论(0) 推荐(0) 编辑