procmail
[Top] [All Lists]

Re: Howto use variables in regexp's ???

2003-09-25 14:43:58
Michael D. Schleif writes:

This does work:

* 1^0 ^subject:[      ]*$

This does *NOT* work:

* 1^0 ^subject:[$WS]*$

What am I missing?


Try:


    EOL='$'

    * 1^0 $ ^subject:$WS$EOL

and note that the meaning of the '$' character changes, (EOL is no
longer '$' in a regex; it changes to the character for variable
substitution.)

        John

-- 

John Conover, conover(_at_)rahul(_dot_)net, http://www.rahul.net/~conover

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