procmail
[Top] [All Lists]

Re: REGEX

2000-12-19 23:05:25
Sergiy Zhuk <serge(_at_)yahoo-inc(_dot_)com> writes:
...
So, now I'm not really sure how to match the following:

      filename="some.name"

'filename' could be prepended only by <space> or <tab> chars at the start of
of the line, but by nothing else.
Also, "filename" could be "name" instead.

Is this in the header or the body?  If in the header, then the line
starting with space or tab is the continuation of the previous line and
the newline between them is treated as a space by procmail's regexp
engine, so you would anchor the match with the name of the header field
in which you're looking for this string.

Looking at the big picture, what are you _trying_ to do?


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>