procmail
[Top] [All Lists]

Re: Embedded comments

2003-05-26 10:29:46
R A Chatwin wrote:
The matching snippet is: ${a}<(!-- ?)?${w}${w}+( *--)?>$a
where the PERL-style variables are (inherited from JARI AALTO :-)
http://info.ccone.at/INFO/Tips+Co/pm-tips.html
        a       = "[a-zA-Z]"            # word, only letters
        w       = "[0-9a-z_A-Z]"        # word

What would the drawback be of simply using?:

        [a-zA-Z]<.*>[a-zA-Z]

I.E. why all the fancy stuff in the middle if one is just trying
to catch/weight comments not surrounded by white space?

--
Daryle A. Tilroe


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