procmail
[Top] [All Lists]

Re: generating vacation response

2000-04-25 20:25:15
At 21:35 -0400 25 Apr 2000, Stan Ryckman 
<stanr(_at_)sunspot(_dot_)tiac(_dot_)net> wrote:
If you want "]" in a character class, put it first:
    []a-z]
matches "]" plus the characters a through z.  I can't remember what
you do if you want both a "]" and a "-" (since "-" also wants to be
first) but that doesn't seem to be the case here.

At least in most implementations, a "-" at the end of a character class
will work the same as at the beginning (match a literal "-").  So a
character class to match letters and the characters "]" and "-" would
be:

  []a-z-]

-- 
Aaron Schrab     aaron(_at_)schrab(_dot_)com      http://www.execpc.com/~aarons/
 As I look across the web, what I find is this vast wasteland that
 makes television almost attractive.  -- Clifford Stoll

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