procmail
[Top] [All Lists]

Re: Searching body of text

1996-10-15 00:50:13
On Mon, 14 Oct 1996 14:06:14 -0700,
"Alan K. Stebbens" <aks(_at_)anywhere(_dot_)engr(_dot_)sgi(_dot_)com> wrote:
/\badd me\b/i
/\bdelete me\b/i
/\bremove\s+me\b/i
/\bchange\b.*\baddress\b/
Pipe it through "egrep -f"..

... or, since the patterns are obviously Perl regexp syntax, through a
Perl wrapper. (Lets you say things like 

(?i)\badd me\b

to specify case insensitive matching for this particular expression.)

/* era */

Just got the new Camel book, and learning new tricks again :-)

-- 
See <http://www.ling.helsinki.fi/~reriksso/> for mantra, disclaimer, etc.
* If you enjoy getting spam, I'd appreciate it if you'd register yourself
  at the following URL:  <http://www.ling.helsinki.fi/~reriksso/spam.html>

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