procmail
[Top] [All Lists]

Re: matching multiple lines

2002-04-11 14:37:31
Rejo Zenger asked,

| Is there an easy way to match on multiple lines, regardless where in the
| regexp the new line starts? I have regexps like these:
|
|   * 1^1   we (always )?(respect|honor) (all )?remov(al|e) requests
|
| However, if in the spam this is split into two lines, this regexp will
| not match it. Any ideas?

Rik Kabel had one: use  (\<)+  instead of a space.  (\>)+  works as well.  \<
and \> can match newlines.



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