procmail
[Top] [All Lists]

Re: Please help with $MATCH

1997-01-10 21:01:08
I guess what I need to know is there a way to END when match loads
the variable (everything between the "[" and "]" ).

you can use ' tr -d "]" 'command to delete "]".  It won't bother  
any names which don't have a "]" in it.

This is not necessary if you make the regexp more stringent, so that
it does not match the characters you wish to avoid.

There is a performance hit in execing a "tr" command (or any command),
just to avoid a character in a string.

The condition:

    * ^Subject: *BOUNCE.*\[\/[^]]+

which set MATCH to everything between the pair of '[' and ']'.

___________________________________________________________
Alan Stebbens <aks(_at_)sgi(_dot_)com>      http://reality.sgi.com/aks

<Prev in Thread] Current Thread [Next in Thread>