Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: artician on July 02, 2014, 08:47:03 PM
-
Looking for a way to create a profanity filter that will take one single string and find it within a longer string. For example, where XXXX is the profanity:
Find "XXXX" in "abcdziXXXXplque".
Any ideas?
-
*boink*
-
Use the String Contains action.
If you need to check a lot of strings you should probably look into Array Maker actions....
If it's an online project you might look into profanity filtering services like this:
http://www.webpurify.com/
-
Oh that's a nice alternative I wasn't aware of (filtering services I mean).
Either way, String Contains should work for what I need. I am already using ArrayMaker for this, and splitting a text file of profanity to an array and checking against that. It only needs to be very basic so I think this should work just fine.
Thank you!