日期:2014-05-18 浏览次数:20668 次
new Regex("你").Replace(源字符串, "我", 3) ------解决方案--------------------
string s = @"你你你你你你好村"; Regex regex = new Regex("你"); string r = regex.Replace(s, "我", 3); Response.Write(r);