usingSystem;usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Text.RegularExpressions;
publicabstract class WordFilter
{
/// <summary>
/// 敏感字数组
/// </summary>
publicstatic string[] s_filters = null;
/// <summary>
【C#】敏感字过滤功能的实现代码
最新推荐文章于 2024-05-01 06:45:00 发布
这是一个使用C#编写的敏感字过滤功能的代码实现,通过WordFilter类进行操作,包含敏感字数组s_filters,支持自定义检测深度、是否只检测不替换、头尾空字符处理和替换敏感字字符串。
摘要由CSDN通过智能技术生成