Block many spaces

These are old archives. They are kept for historic purposes only.
Post Reply
Guest

Block many spaces

Post by Guest » Wed Jan 18, 2006 1:16 pm

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!

Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post by Jason » Wed Jan 18, 2006 6:30 pm

Thats not a regex. Its a glob pattern.

/spamfilter + cpnN block - Too_Many_Spaces [^ ] +[^ ] +[^ ] +
Why the hell can't my signature be empty?
"Your message contains too few characters."

Guest

Works fine

Post by Guest » Wed Jan 18, 2006 7:06 pm

Thank you Jeson it works fine!

Guest

Not working

Post by Guest » Mon Jan 23, 2006 5:03 pm

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???

aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight » Tue Jan 24, 2006 5:17 pm

This should work:

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

Post Reply