homepage Welcome to WebmasterWorld Guest from 54.227.5.234
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

    
Can you filter profanity while keeping upper and lowercased letters?
How the @$#%! do they do it?
HyperGeek




msg:945170
 7:54 pm on Feb 3, 2005 (gmt 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?

 

Easy_Coder




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

There's nothing intrinsic; you'll need to write your own solution...

Zaphod Beeblebrox




msg:945172
 8:40 am on Feb 4, 2005 (gmt 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)

HyperGeek




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved