|
I'm working on a filter for a bulletinboard to prevent spam and exploits.
Right now I'm using str_replace() to filter out keywords. But if they mix uppercase and lowercase in the same word, it doesn't work. I could convert everything to lowercase first, but then I'd mess up their text.
How to solve this?
|