Welcome to WebmasterWorld Guest from 54.198.229.157

Forum Moderators: ocean10000

Message Too Old, No Replies

Can you filter profanity while keeping upper and lowercased letters?

How the @$#%! do they do it?

     
7:54 pm on Feb 3, 2005 (gmt 0)

Preferred Member

10+ Year Member

joined:May 8, 2002
posts:390
votes: 0



I can change change everything the uppercase or lowercase, and then censor, but then the entire filtered message ends up in either uppercase or lowercase.

Is there an ASP/VBscript workaround for this? ASP.net maybe?

12:21 am on Feb 4, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 2, 2003
posts:1184
votes: 0


There's nothing intrinsic; you'll need to write your own solution...
8:40 am on Feb 4, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 31, 2003
posts:196
votes: 0


Use the VBScript/ASP Replace function. vbTextCompare is case-insensitive:

Replace(expression, find, replacewith[, start[, count[, compare]]])

Const vbTextCompare = 1
strText = Replace(strText, strProfanity, "****", 1, 10000, vbTextCompare)

4:47 am on Feb 5, 2005 (gmt 0)

Preferred Member

10+ Year Member

joined:May 8, 2002
posts:390
votes: 0


Thank you -so- much. I was literally losing sleep over this.