procmail
[Top] [All Lists]

regular expressions: question(s)

1997-06-05 17:05:00
I am a pore hand at regular expressions; so forgive me if this is covered
elseware . . .

* Does anyone know of a document, available on the net,
describing/presenting data about the use of regular expressions as used in
procmail, sed, etc.?

* I want to check the From:, and Reply-to: fields, for either the contents
of the var abc, or the var def...  Will this do it?:

* $^(From:|Reply-to:).*(${abc}|${def})

* I want to check the subject for the words "get file ", followed by
"pw=", and the contents of the "pw" var, then nothing else but
space/tabs...  Will either of the following work?:

* $^Subject:[    ]get file pw=${pw}[     ]*>


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