【发布时间】:2017-03-22 10:22:12
【问题描述】:
当我尝试Regex.Replace() 方法时失败。
我该如何解决?
Replace.Method (String, String, MatchEvaluator, RegexOptions)
我试试代码
<%# Regex.Replace( (Model.Text ?? "").ToString(), patternText, "<b>" + patternText + "</b>", RegexOptions.IgnoreCase | RegexOptions.Multiline)%>
【问题讨论】:
-
呃,当您尝试 Regex.Replace 时,what 失败了?
-
当我尝试不仅*,+时会发生?