JAVA过滤敏感词

主要用到的是java的

Matcher m = pattern.matcher(str);

str = m.replaceAll("");

根据对读入敏感词列表文件的每一行做匹配,来过滤敏感词

下面是具体代码:

分享到:
评论

你可能感兴趣的:(java)