替换字符串第一次出现的某个字符

int tmp = allContent.IndexOf("<p>  "); //第一次出现的索引值
 int l = "<p>  ".Length;
allContent = allContent.Remove(tmp, l); //在该索引处删除110
allContent = allContent.Insert(tmp, "<p>"+cr);
                             

原文地址:https://www.cnblogs.com/xuxiaoshuan/p/3958258.html