摘要: //第一种: string abc = "……";//你的字符串 abc = abc.Replace("1", "A");//将abc字符串中的 1 替换成 A //第二种 System.Text.RegularExpressions.Regex.Replace("在替的字符串", "要搜索的字符串(这里可以用正则表达式)", "替换的字符串"); //例子 string input="你输入的... 阅读全文
posted @ 2010-03-21 20:23 杯具的小北 阅读(732) 评论(0) 推荐(0) 编辑