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