procmail
[Top] [All Lists]

Re: puzzled about a regexp

2003-01-14 04:03:16
Professional Software Engineering skribis:

There's a nice, straightforward attachment filter at:
  http://www.johncon.com/john/QuarantineAttachments/


He is expressing ext as (I snipped a few lines)

        ext='(a(d[ep]|r[cj]|s[dmxp]|u|vi)|\
              z(ip|oo)\
             )'

Doesn't that include whitespace in the regexp?

I am used to do it as:

  ext = "(\
a(d[ep]|r[cj]|s[dmxp]|u|vi)|\
z(ip|oo)\
)"

-- 
Affijn, Ruud

Easy people don't care too much.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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