wood burning stoves 2.0*
The moose likes JForum and the fly likes Word censorship Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Word censorship" Watch "Word censorship" New topic
Author

Word censorship

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Is there any capability to automatically censor certain words within a post?

[originally posted on jforum.net by mbongiov]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
There is no built in word censor. It wouldn't be that hard to add one. Some quick design thoughts on this are:

Create a class that reads in a set of RegEx word expressions and replacements. Have a method to check a string against them and make replacements.

Then call this call inside the Post setText and setSubject methods.

Probably some performance things to think about but those shouldn't be that hard.
[originally posted on jforum.net by monroe]
 
 
subject: Word censorship
 
Similar Threads
Tomcat Error
java.lang
avoid port number :8080 in URL ?
IDE ? plz help
Appreciation of javaranch forum!