摘要:
单个替换: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... 阅读全文
摘要:
string str="aaaa^bbbb^cccc^dddd"; string [] mystr=str.Split('^'); foreach (string i in mystr) { Response .Write (i.ToString()+""); }输出为:aaaabbbbccccddddResponse .Write (mystr.Length.ToStrin... 阅读全文