应该是这样的:
原文链接:https://www.f2er.com/regex/356546.htmlvar regex = new Regex("/\*((?!\*/).)*\*/",RegexOptions.Singleline); regex.Replace(input,"");
var regex = new Regex("/\*((?!\*/).)*\*/",RegexOptions.Singleline); regex.Replace(input,"");