Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Mapping the 2nd through last characters?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Etymon
Advanced Member

United States
2391 Posts

Posted - 23 November 2006 :  11:18:03  Show Profile  Visit Etymon's Homepage
Does anyone know how to do this?:

quote:
I've had fine results simply mapping the 2nd through last characters of the most offensive 6 or 7 bad words with punctuation marks, e.g. f#@! Very few users have gamed the system and people seem to appreciate this approach that preserves their meaning while at the same time maintaining decency for our broad audience.

HuwR
Forum Admin

United Kingdom
20587 Posts

Posted - 23 November 2006 :  11:30:56  Show Profile  Visit HuwR's Homepage
you would need to use a regexp to do this, although Snitz does allow you to replace badwords with anything you chose.
Go to Top of Page

-gary
Development Team Member

406 Posts

Posted - 23 November 2006 :  23:39:18  Show Profile
Since this isn't a Snitz related question it's hard to give an exact answer since you can flag and replace words 1000 different ways. Without using a RegExp, try something like this.

Set a var to your replace characters and make it long enough to cover any words that need replacing.

var = "$#%@#$%^#$!%!#$%#%$^$%^$@!#%#$^$%^&%^&*%^#&$%^#@$%%#$!%"

For Each Found_Word
Replace(string, Found_Word, Left(Found_Word, 1) & Left(var, Len(Found_Word) - 1))
Next

A RegExp approach is better if you can use it since its pattern matching is far superior and you don't waste time on needless replace loops.

KawiForums.com


Go to Top of Page

Etymon
Advanced Member

United States
2391 Posts

Posted - 30 October 2007 :  11:59:16  Show Profile  Visit Etymon's Homepage
Huwr & Gary,

I didn't see these replies until after doing a search for something similar this morning. I must have gotten caught up with the holidays last year and misplaced recalling to visit this topic again.

Thank you for the replies. It helped me again with the search I had to do today!

Cheers,

Etymon

Edited by - Etymon on 30 October 2007 12:00:13
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.71 seconds. Powered By: Snitz Forums 2000 Version 3.4.07