直接这样使用吧。public string FilterData(string strcontent,string strfilter)
{
        string[] s= strfilter.Split('|');
        foreach(string key in s)
{
Re=Regex.Replace(strcontent,key,"");//出错,无法将string转化为regex
             
}
return Re.ToString(); }