procmail
[Top] [All Lists]

Re: Extension regex [Was: Damn this Sexy-Fun garbage!]

2001-03-08 21:16:12
* Timothy Luoma (elists(_at_)1stpc(_dot_)org) [09 Mar 2001 03:15]:

Sorry to be dense, but can you explain to me the practical difference 
between using [ ] and ( ) ?

[] provide alternatives for single characters. e.g. to match bad bed bid
and bud one would use b[aeiu]d.

To do the same for () one could do:
   (bad|bed|bid|bud)
or b(a|e|i|u)d

i.e. (|) provides alternates that are longer than one character.


cheers,
-- 
iain.                                          <http://eh.org/~koschei/>
I am currently reading, amongst other things:
                "The Elements of Typographic Styke" by Robert Bringhurst
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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