procmail
[Top] [All Lists]

Re: matching multiple lines

2002-04-12 00:10:56
Rejo Zenger <rejo(_at_)sisterray(_dot_)xs4all(_dot_)nl> writes:
...
Got that working. Now I'm experimenting a bit more, I no have:

 RN = "( |((\<)+[      ]?))"

This should make it possible to match either:
 - a space
 - a newline
 - a newline, followed by one or more whitepace.

\< matches much more than just newline.  Use ^ or $ for that:

        RN = '( |^[     ]*)'


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