procmail
[Top] [All Lists]

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

1997-02-21 22:48:08
John Gianni <jjg(_at_)Cadence(_dot_)COM> writes:
MY QUESTION IS: 
What is the purpose of the backslash-slash in the line
  * ^Subject: send-ls-list \/[a-z0-9_.-]+@([a-z0-9-]+\.)*com$
---
...
---
This backslash-slash combination is shown in one of the procmailex manpage 
examples, but, I don't see an explanation of what the purpose of the 
backslash-slash combination is in that manpage example, or in other procmail
manpage (although I may have missed it).

Yep.  Check the procmailrc(5) manpage again:

     MATCH       This variable is assigned to by  procmail  when-
                 ever  it is told to extract text from a matching
                 regular expression.  It will  contain  all  text
                 matching  the  regular  expression past the `\/'
                 token.

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

Philip Guenther