procmail
[Top] [All Lists]

Re: Please help with $MATCH

1997-01-11 09:53:57
The condition:

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

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

They ought to teach regular expressions in primary school.

So why don't I need ".*" to catch all the chars between the "\/" and the
"]"?  Is that a function of $MATCH or just a part of regular expressions (I
say $MATCH because anything past the "\/")?

And why don't I need to escape the "]" as in

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

And thanks very much for your help.

Sincerely, and regexp impared,

Bill Moseley
mailto:moseley(_at_)netcom(_dot_)com

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