cooldude832 Posted July 13, 2007 Share Posted July 13, 2007 I know I can write out a complete profanity filter, but does anyone have one prebuilt or have any ideas with regex on blocking derivations of words? the basic idea i got is <?php $badwords = array("bad1","bad2","Bad3"); $string = str_replace($badwords,"",$string); ?> lets say bad1 can be used as cat or cated or cating or cats or cates or catly get the idea? Link to comment https://forums.phpfreaks.com/topic/59766-profanity-filter/ Share on other sites More sharing options...
trq Posted July 13, 2007 Share Posted July 13, 2007 Search the board.. this has been asked about many times before. Link to comment https://forums.phpfreaks.com/topic/59766-profanity-filter/#findComment-297099 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.