From: Danny Siu <dsiu@Adobe.COM>
Subject: Re: What is better for splitting: complex regexp or many rules
Date: 28 Oct 1996 15:52:36 -0800 [thread overview]
Message-ID: <yj93eyyfxyz.fsf@adobe.com> (raw)
In-Reply-To: Kees de Bruin's message of 24 Oct 1996 08:49:49 +0200
Kees de Bruin writes:
KdB> I have a list of people I receive e-mail from and I would like to
KdB> know what is better: have a split entry for each person or create a
KdB> complex regular expression that matches all the e-mail addresses? The
KdB> number of people range from between 5 and 40 for a single split.
KdB> Kind regards,
I am using a single not-so-complex regexp for the mails that my Berkeley
friends send me.
((re-search-forward "^\\(To\\|[Cc][Cc]\\):.*\\(auluen@\\|beatrice@\\|bentse@\\|blam@\\|bonnieh@\\|burtonl@\\|fchan@\\|yiu@\\|jackchow@\\|jwong@\\|leric@\\|psyeung@\\|sfung@\\|stsf@\\|syang@\\|tonyc@\\|wleung@\\|wwwong@\\).*"
nil t)
(list "Berkeley-HK-Friends"))
It's easy enough for me to add or remove entry in this regexp.
Anyone lisp expert knows the performace trade off btw two cases?
--
^..^
'/..\" ( oo ) )~
m( oo )m ,, ,,
/=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\
| Danny Dick-Fung Siu http://www-leland.stanford.edu/~dsiu |
| Reference System Group http://www.csua.berkeley.edu/~dsiu |
| Adobe Systems Incorporated E-Mail:<dsiu@alumni.eecs.berkeley.edu> |
| "What do you expect from a <dsiu@leland.stanford.edu> |
| Cal. Berkeley grad.?" <dsiu@adobe.com> |
\=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=/
next prev parent reply other threads:[~1996-10-28 23:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-10-24 6:49 Kees de Bruin
1996-10-25 7:56 ` Lars Magne Ingebrigtsen
1996-10-28 23:52 ` Danny Siu [this message]
1996-10-29 9:35 ` Per Abrahamsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yj93eyyfxyz.fsf@adobe.com \
--to=dsiu@adobe.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).