procmail
[Top] [All Lists]

Re: equivalent for backreference \1

2002-08-03 08:03:26
  On Aug 03 at 10:32, Don Hammond spoke:

Not exactly, but it can be done using the contents of $MATCH as assigned
by the MATCH token "\/".

# thisrc
DEFAULT = /dev/null
NL="
"
VAR = ${VAR:-666}
:0
*   VAR ?? ()\/[0-9]
* $ VAR ?? ()\/$MATCH$MATCH$MATCH
{ LOG = "Matched $MATCH$NL" }

Ok. I should be more precise. I want something like:

* ^Subject: .*([-!-,:-(_at_)])\1\1.*$

\/ would probably match the whole reminder of the line.

Or should I use something like:

:0 fhw
| grep '^Subject: .*([-!-,:-(_at_)])\1\1' >/dev/null

:0 a
...


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