procmail
[Top] [All Lists]

Re: Searching for text in the body of an email which may/may not have newlines

2000-11-02 18:17:29
Stan Ryckman <stanr(_at_)sunspot(_dot_)tiac(_dot_)net> writes:
newland(_dot_)andrews(_at_)bt(_dot_)com wrote:
...
eg. The following line in a recipe

*B ?? ()\<Here(\<)+is(\<)+the(\<)+text\>

Would work (I think?) but are there better methods?

I think you'll have to change those "(\<)+" into "($|\<)+"
since \< won't match newlines.

Read the manpage again: \< and \> will both match a literal newline.

I think the proposed regexp is the most efficient method.  The parens
around each \< are unneeded, but shouldn't change the regexp's efficiency.


Philip Guenther
_______________________________________________
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>