string ls_title = "你好世界ABC_abc_Abc_aBC";
string wd = "abc";
ls_title = System.Text.RegularExpressions.Regex.Replace(ls_title, @"(?is)"+ wd, "" + wd + "");
C#Replace过滤忽略其大小写
最新推荐文章于 2024-02-28 11:33:04 发布
string ls_title = "你好世界ABC_abc_Abc_aBC";
string wd = "abc";
ls_title = System.Text.RegularExpressions.Regex.Replace(ls_title, @"(?is)"+ wd, "" + wd + "");