Replace Bad words using Regex

后端 未结 4 1390
小蘑菇
小蘑菇 2021-01-11 14:32

I am trying to create a bad word filter method that I can call before every insert and update to check the string for any bad words and replace with \"[Censored]\".

4条回答
  •  一生所求
    2021-01-11 15:18

    There is also a nice article about it which can e found here

    With a little html-parsing skills, you can get a large list with swear words from noswear

提交回复
热议问题