From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: cleaning up a big regexp Date: 15 Sep 2014 11:18:44 GMT Message-ID: References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1410780065 18694 80.91.229.3 (15 Sep 2014 11:21:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Sep 2014 11:21:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 15 13:20:59 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XTUL4-00032t-Hz for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Sep 2014 13:20:58 +0200 Original-Received: from localhost ([::1]:58865 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTUL3-0001c5-VB for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Sep 2014 07:20:57 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-X-Trace: individual.net WYYhEpTjeH+xmIX6W12pawSaCmcSlfkcz5OSAnn4N4xU+MNN52 Cancel-Lock: sha1:3RYUOfHoBfaRiyk8BfEQge1NsKA= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/pre1.0.0-18 (Linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:207636 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99908 Archived-At: Tory S. Anderson wrote: > Using gnus I have a growing regexp that represents the criteria for bulk email and splits accordingly: [...] > Is there a way to clean this up to make it both more readable and more > easily editable? It seems like keeping some kind of list would be the > way to do it, instead of an ever-lengthening string. There's the function `regexp-opt', which takes a list of strings and returns a regular expression that will match any of those strings. Perhaps you can use that? -- Joost Kremers joostkremers@fastmail.fm Selbst in die Unterwelt dringt durch Spalten Licht EN:SiS(9)