procmail
[Top] [All Lists]

Re: This correct?

1998-03-13 22:56:03
Bill McClatchie <wmcclatc(_at_)primenet(_dot_)com> writes:
I have a scoring filter that looks for "crap" in the body of a message.  I
want to add two things to this filter.  First, lines that begin with /.

Second, and instance of //+

Will the following do the trick since the / is a special symbol?

By itself, / is not special to the regexp engine.  Indeed, \/ _is_ a
special token.  Therefore, the regexp should be writen as:

        ^/|//
or
        (^|/)/


Philip Guenther

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