procmail
[Top] [All Lists]

Re: equivalent for backreference \1

2002-08-05 02:56:38
  On Aug 05 at 00:41, Holger Wahlen spoke:

* Hanspeter Roth wrote:
I have now a solution using the $MATCH variable:

*   ^Subject: .*\/[-!-,:-(_at_)]
* $ ^Subject: .*$MATCH.?.?$MATCH.?.?$MATCH

Does that really solve your problem? False positives are possible
(though admittedly improbable) because you allow up to two other
characters between the occurrences of $MATCH (why?), and due to the
problem I described in my response to Don, you're also likely to get
false negatives.

Ok. This should match

Subject: ***
Subject: * * *
Subject: *  *  *

It will also match

Subject: * **

but this is ok.

Unfortunately it doesn't match

Subject: -***

So is there a simple recipe for this one?

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