help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cleaning up a big regexp


From: Joost Kremers
Subject: Re: cleaning up a big regexp
Date: 15 Sep 2014 11:18:44 GMT
User-agent: slrn/pre1.0.0-18 (Linux)

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)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]