procmail
[Top] [All Lists]

Re: How to Filter Whole Word?

1996-08-22 06:51:07
larryr(_at_)netcom(_dot_)com (Lawrence B. Renslow) writes:
I want to write a condition that will snag ward but not forward, backward,
toward, etc.

I tried this, which I gleaned from the grep man page:

:0BHw:
* \<ward\>
ward

It didn't work.  I tried enclosing the condition in quotes, that didn't
work either.

How to do it?

:0BHw:
* ()\<ward\>
ward

or

:0BHw:
* (\<)ward\>
ward


You need to protect the initial \< from the special processing done on the
first character of a condition.

Stephen, can you put a note on the procmailrc manpage about this?

Philip Guenther

<Prev in Thread] Current Thread [Next in Thread>