Possible Duplicate:
How do you implement a good profanity filter?
i need to build a script that remove bad words from someone post or username or anythong else they submit to my site.
i have a small script that already remove them but it also cut good words like: a**
, f**k
, etc...
now my problem is i have a script that already remove bad words (from my list) but it also remove good one
a** and glass
i do:
str_replace('a**', '***', $message);
i want to make sure i wont strip good words or first name for example, what is the best solution?
thanks