At 09:27 AM 6/26/98 -0400, Rocke Robertson 991-2604 UNTS wrote:
Hi, Im new to this group.
Welcome.
I cant seem to successfully filter the body of a message for a string like
"dear friend".
All my other "recipe's" seem to work. This is what I am doing for the filter.
:0B
* ^ *dear friend
{
[snip]
That matches only at the beginning of a line, optionally with spaces
at the beginning of the line.
You probably want something like:
:0B
* ()\<dear +friend\>
to match anywhere in a line, with at least one space between dear and friend.
If you want to worry about "dear" at the end of one line, and "friend"
at the start of the next, you could try something like:
:0B
* ()\<dear *($)? *friend\>
OK, that'll match "dearfriend" too but I'm a bit lazy today :-)
Hope that helps,
Stan