procmail
[Top] [All Lists]

Re: regex double checking

1997-10-20 08:57:38
        Author:        Philip Guenther <guenther(_at_)gac(_dot_)edu>
        Original-Date: Mon, 20 Oct 1997 09:53:09 -0500
        Message-ID:    
<199710201453(_dot_)JAA24477(_at_)solen(_dot_)gac(_dot_)edu>

Character classes are of course most useful when you really want to
catch a largish range of characters, such as [a-z], or negate the
class, i.e. [^a-z].

They're also more efficient than alternation via |.

can I use a ? after a set of [ ] like this:

        (majordomo|listless|mail[2356]?)\.netcom\.com|\

(yes I do want to match mail.netcom.com as well)

TjL


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