Page 1 of 1

Exact Word regex

Posted: Thu Jan 10, 2008 4:19 am
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...!

Re: Exact Word regex

Posted: Thu Jan 10, 2008 6:37 am
by Stealth
May I ask why you wish to do this?

Re: Exact Word regex

Posted: Thu Jan 10, 2008 12:46 pm
by Annihilator90
I just want to ban a bad word without affecting other innocent users. Moreover, it can also help my knowledge right ? :P

Re: Exact Word regex

Posted: Sat Jan 12, 2008 3:53 am
by Jason
Stealth: What's the alternative application of exact-word matching?


\bapple\b

Re: Exact Word regex

Posted: Sat Jan 12, 2008 6:10 am
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.