想要以编程方式使用HTML标记格式化文章.在文章中找到模式并将其自身替换为每侧附加的标签的最佳方法是什么?更具体地说,我如何thematch在以下示例中传递匹配:
thematch
string formattedArticle = Regex.Replace(article, "^\d.+", "<em>" + thematch + "</em>");
c# regex replace
c# ×1
regex ×1
replace ×1