parsing “*” - Quantifier {x,y} following nothing

前端 未结 3 2053
[愿得一人]
[愿得一人] 2020-12-06 09:36

fails when I try Regex.Replace() method. how can i fix it?

Replace.Method (String, String, MatchEvaluator, RegexOptions)

I tr

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-06 10:14

    thanks,

    and I fixed like this

    <%# Regex.Replace( (Model.Text ?? "").ToString(), Regex.Escape(patternText), "" + patternText + "", RegexOptions.IgnoreCase | RegexOptions.Multiline)%>
    

提交回复
热议问题