procmail
[Top] [All Lists]

Re: matching words that are laced with html

2003-10-30 04:33:34

----- Original Message ----- 
From: Ian Prideaux 
To: procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE 
Sent: Thursday, October 30, 2003 11:27 AM
Subject: Re: matching words that are laced with html


Shea Gray wrote:
I wanted to find out how you guys go about matching words that have html
comments in them like the one below....

Viag<!-- necessity -->ra

Im not sure how I should go about writing the regexp for this, so some
of your examples or suggestions would be nice. Thanks in advance.

I guess that it would be something like:

V<!--.*-->i<!--.*-->a<!--.*-->g<!--.*-->r<!--.*-->a

    ".*"  will eat the whole string.  Use  [^-]*

Bye,
 Udi   

but IIRC there's something odd about the way procmail interprets <> 
signs, you need to enclose them in [] brackets to stop procmail 
interpreting them as special characters. Do you need to escape the ! as 
well?

-- 
Ian Prideaux
System Administrator
mailto:ian(_at_)sift(_dot_)co(_dot_)uk
http://www.sift.co.uk/


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


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