fails when I try Regex.Replace()
method.
how can i fix it?
Replace.Method (String, String, MatchEvaluator, RegexOptions)
I try code
<%# Regex.Replace( (Model.Text ?? "").ToString(), patternText, "<b>" + patternText + "</b>", RegexOptions.IgnoreCase | RegexOptions.Multiline)%>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…