procmail
[Top] [All Lists]

Re: why this is not working ?

2006-05-26 06:38:49
Matthias Haeker schreef:

can you please give me a example how i get a match
on a paragraph in an emailbody like


something something whatever..... # for that i am not checking
a b c / e f          # this i want to find
x / - b c d k X      # dito



With my previous definitions of $b and $S:

  :0:
  *$ B ?? (^|$b)$S$b$S$b$S$b$S$b$S$b$S($b|^)
  /var/mail/dirt

The variables $n, $t, $b, $d, $w, $s stand for single character matches
of (n)ewline, (tab), (b)lank, (d)igit, (w)ord, white(s)pace characters,
as they are used in PCRE (Perl Compatible Regular Expressions).
The same goes for the uppercase forms $D, $S, $W, which are negatives:
non-(D)igit, non-white(S)pace, non-(W)ord character.

See http://www.pcre.org/pcre.txt or http://perldoc.perl.org/perlre.html
and look for "\t" or "\d".

-- 
Groet, Ruud


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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