Fairlight <[EMAIL PROTECTED]> wrote:
>
> > You bunch them all in one big regex.  It looks slightly ugly but
> > fortunately it doesn't need to be human-parseable most of the time.
> 
> I imagine it does look really confusing with lots of short things like
> iki.fi in it.  :)

Well, if you do like many hackers, and try to make a "clever" regexp,
it's probably going to be hard to read.  But there's no reason you can't
just make a "simple" regexp that does the same thing.

For instance, instead of this:

    set alternates='^(fox|david|cretin)@(convex|hp).com)$"

I could just do this:

    set 
alternates='^([EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED])$"

Which one is easier to read, depends on the width of your terminal, and
how much you enjoy parsing regular exprssions.  :)

-- 
David DeSimone   | "The doctrine of human equality reposes on this:
[EMAIL PROTECTED]   |  that there is no man really clever who has not
Hewlett-Packard  |  found that he is stupid." -- Gilbert K. Chesterson
UX WTEC Engineer |    PGP: 5B 47 34 9F 3B 9A B0 0D  AB A6 15 F1 BB BE 8C 44

Reply via email to