Thread: Auto swear gag
View Single Post
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 08-07-2012 , 12:03   Re: Auto swear gag
Reply With Quote #106

I made this pattern:
"^.*[k]+[^a-z]*[u]+[^a-z]*[r]+[^a-z]*[a@4c]+[^a-z]*[ci1!u]+$"
Problem is that pattern isn't working if swear word is the first word in sentence or if it has word behind.

Like:
nesto kurac - blocked
kurac nesto - not blocked.
nesto kurac nesto - not blocked
nesto kur@c... - not blocked

All of this should be blocked...

Last edited by OvidiuS; 08-07-2012 at 12:07.
OvidiuS is offline
Send a message via Skype™ to OvidiuS