procmail
[Top] [All Lists]

Re: RFC-consistent regexp to match name@(subdomain.)*foo.bar

1997-02-21 22:03:29
On Fri, 21 Feb 1997, John Gianni wrote:
MY QUESTION IS: 
What is the purpose of the backslash-slash in the line

   * ^Subject: send-ls-listing \/[a-z0-9_.-]+@([a-z0-9-]+\.)*com$

If the condition is matched, evrything _after_ the \/ will be fed into
the variable MATCH for later use. Reading from procmailrc manpage
under "Extended regular expressions". 

    \/
        Splits the expression into two parts. Everything matching the
        right part will be assigned to the MATCH environment variable.