Page 1 of 1

Block many spaces

Posted: Wed Jan 18, 2006 1:16 pm
by Guest
Hi there...

How can i block when a user uses too many spaces like:

a a a a a, w w w . n a m e . c o m, f u c k etc...

I tried to blcok like this regex " ? ? ? "; but its not working

I would like to block every third space like when he/she writes: a a a

But not to block words just when there is only 1 character

Thank you in advance!

Posted: Wed Jan 18, 2006 6:30 pm
by Jason
Thats not a regex. Its a glob pattern.

/spamfilter + cpnN block - Too_Many_Spaces [^ ] +[^ ] +[^ ] +

Works fine

Posted: Wed Jan 18, 2006 7:06 pm
by Guest
Thank you Jeson it works fine!

Not working

Posted: Mon Jan 23, 2006 5:03 pm
by Guest
Jeson i though that it works, but it's also blocking other messages

i need a code to block only when a user writes a character not the hole word. For example block a a a but not aa aa aa

Can you help me with that???

Posted: Tue Jan 24, 2006 5:17 pm
by aquanight
This should work:

(^|\s+)(\S\s+){2,}\S(\s+|$)