Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Bad word censor in Java/AspectJ

Name: Anonymous 2009-01-20 5:41

Hey /prog/ can you help me out with this?

I am trying to make a filter for bad words using java/aspectj. Whenever a method has a System.out.println which includes a bad word I want it to be replaced with an equal amount of #s. For example System.out.println("You are a damn shiteater") should print out "You are a #### ####eater". All bad words are stored as strings on a list which I can access with getBadWords(). It shouldn't be case-sensitive either. I am really stuck with this one so I hope you can help.

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !FrOzEn2BUo 2009-01-21 5:41

>>66 Optimized:
 {0,5} can be ommited(the 1337 u is only with one final \|)

/\b(f{1,7}|ph{1,7})(\|_{1,2}\||[u\*_]{0,5})[kc\*©]{0,2}\b/gi
_________________________
orbis terrarum delenda est
 http://xs135.xs.to/xs135/09042/av922.jpg

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List