Reply
Textfilter without messing with uppercase
Old 04-27-2008, 08:20 PM Textfilter without messing with uppercase
Novice Talker

Posts: 7
Trades: 0
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?
Mikon is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 04-27-2008, 08:28 PM Re: Textfilter without messing with uppercase
Extreme Talker

Posts: 158
Trades: 0
str_ireplace() I believe is used for case insensitive replacement.
kbfirebreather is offline
Reply With Quote
View Public Profile
 
Old 04-27-2008, 08:37 PM Re: Textfilter without messing with uppercase
Novice Talker

Posts: 7
Trades: 0
Thanks
Mikon is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Textfilter without messing with uppercase
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.10348 seconds with 13 queries