Ruud H.G. van Tol schreef:
:0:
*$ B ?? (^|$b)$S$b$S$b$S$b$S$b$S$b$S($b|^)
/var/mail/dirt
Both the (^|$b) and ($b|^) could be replaced by $s, because $s includes
a newline.
t = ' ' # a literal tab
n = '
' # a literal newline
b = "[$t ]" # [[:blank:]]
s = "[$t$n ]" # [[:space:]]
S = "[^$t ]" # [^[:space:]]
d = "[0-9]" # [[:digit:]]
D = "[^0-9]" # [^[:digit:]]
w = "[A-Za-z0-9_]" # [[:word:]]
W = "[^A-Za-z0-9_]" # [^[:word:]]
The $s could include all of
Backspace (BS, ASCII-8),
Horizontal Tab (TAB, ASCII-9),
Line Feed (LF, ASCII-10),
Vertical Tab (VT, ASCII-11),
Form Feed (FF, ASCII-12),
Carriage Return (CR, ASCII-13) and
Space (SPC, ASCII-32)
since they are all considered types of whitespace, but I limited $s to
positive horizontal whitespace (TAB, LF, SPC).
It is on good purpose that $S doesn't include LF.
I got the general idea from Jari Aalto, see section 1.7 in his
http://pm-doc.sourceforge.net/pm-tips.html
--
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