From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/8509 Path: main.gmane.org!not-for-mail From: Danny Siu Newsgroups: gmane.emacs.gnus.general Subject: Re: What is better for splitting: complex regexp or many rules Date: 28 Oct 1996 15:52:36 -0800 Sender: dsiu@Adobe.COM Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.79) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035148657 12491 80.91.224.250 (20 Oct 2002 21:17:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:17:37 +0000 (UTC) Return-Path: Original-Received: (qmail 11341 invoked from smtpd); 29 Oct 1996 00:15:46 -0000 Original-Received: from ifi.uio.no (0@129.240.64.2) by deanna.miranova.com with SMTP; 29 Oct 1996 00:15:45 -0000 Original-Received: from smtp-relay-2.Adobe.COM (smtp-relay-2.adobe.com [192.150.11.2]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Tue, 29 Oct 1996 00:56:33 +0100 Original-Received: by smtp-relay-2.Adobe.COM (8.7.5) with ESMTP id PAA11852; Mon, 28 Oct 1996 15:56:20 -0800 (PST) Original-Received: by inner-relay-2.Adobe.COM (8.7.5) with ESMTP id PAA15052; Mon, 28 Oct 1996 15:55:17 -0800 (PST) Original-Received: by mail-303.corp.Adobe.COM (8.7.5) with ESMTP id PAA01550; Mon, 28 Oct 1996 15:56:03 -0800 (PST) Original-Received: by piggy (8.6.9) id PAA11689; Mon, 28 Oct 1996 15:52:36 -0800 Original-To: ding@ifi.uio.no X-Location: Mountain View, CA X-Disclaimer: My opinions, not my employer's. X-Mailer: Red Gnus v0.48 with nnfolder 1.0 X-Newsreader: Red Gnus v0.48 X-Emacs: 19.14 XEmacs Lucid X-Face: fHBvLrQQW(GRz#RNTAN(,')p8NGv}{6dMh\:?%*D\+8hgkiA_dub1@\,Y"r5'a8C(8e~cGG(WFTU\OlAqI[B?V7m'ZGkquvZ/d k~E"A"@WK;0mLF&\%W1kIC]O"z#/>YNUefE1%5/NUX;ml]@$nW;05Z9uZ/CqTz]A)+`1ROuF~||pG= k>Zi@hE- In-Reply-To: Kees de Bruin's message of 24 Oct 1996 08:49:49 +0200 Original-Lines: 31 Xref: main.gmane.org gmane.emacs.gnus.general:8509 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:8509 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: | | "What do you expect from a | | Cal. Berkeley grad.?" | \=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=/