Exact Word regex

These are old archives. They are kept for historic purposes only.
Post Reply
Annihilator90
Posts: 30
Joined: Sat Jun 02, 2007 1:46 pm

Exact Word regex

Post by Annihilator90 »

How can I ban an exact word ?

For example, if I would like to ban the word 'apple' and add that to spamfilter,

it'll catch 'apple' as well as 'an apple a day', 'applet' and 'dapple'.

If I do ^apple$, it'll only catch the exact 'apple' word and the sentences like 'an apple a day' and 'an apple is' will escape but 'applet' and 'dapple' will not be mistakenly caught though.

I wonder how can i modify it so that, the spamfilter will catch only, 'apple' , 'an apple a day', 'an apple is' but will not catch, 'applet', dapple', etc...

Thank you all...!
Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Re: Exact Word regex

Post by Stealth »

May I ask why you wish to do this?
Annihilator90
Posts: 30
Joined: Sat Jun 02, 2007 1:46 pm

Re: Exact Word regex

Post by Annihilator90 »

I just want to ban a bad word without affecting other innocent users. Moreover, it can also help my knowledge right ? :P
Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Re: Exact Word regex

Post by Jason »

Stealth: What's the alternative application of exact-word matching?


\bapple\b
Why the hell can't my signature be empty?
"Your message contains too few characters."
Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Re: Exact Word regex

Post by Stealth »

Annihilator90 wrote:I just want to ban a bad word without affecting other innocent users. Moreover, it can also help my knowledge right ? :P
If you can provide for me a straight-forward no BS reason as to why you wish to forcefully block the free use of a single word on your network, then I will tell you.

Otherwise, there is no reason any single word should be forcefully blocked from use on an entire network.
Post Reply