procmail
[Top] [All Lists]

Re: (il)logical algebra

2004-03-25 04:11:11
On Thu, 25 Mar 2004, 09:50 GMT-01 Klaus Johannes Rusch wrote:

Regular expressions generally define matching patterns and have no
concept of negation, the negation using ! is a procmail extension and
applies to the whole expression,

Hello Klaus Johannes,

this is not a general rule for regexes. Perl's regex machine knows
constructs that match the presence and the absence of a pattern, in
both directions. They are known as positive look-aheads, negative
look-aheads, positive look-behinds and negative look-behinds.

Each language is based on their own culture :-)

rob.


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