[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)
- cleaning up a big regexp, Tory S. Anderson, 2014/09/15
- Re: cleaning up a big regexp,
Joost Kremers <=
- Re: cleaning up a big regexp, Tory S. Anderson, 2014/09/15
- Re: cleaning up a big regexp, Michael Albinus, 2014/09/15
- Re: cleaning up a big regexp, Tory S. Anderson, 2014/09/15
- Re: cleaning up a big regexp, Michael Albinus, 2014/09/15
- Re: cleaning up a big regexp, Stefan Monnier, 2014/09/15
- Re: cleaning up a big regexp, Michael Albinus, 2014/09/15
- Thanks! Re: cleaning up a big regexp, Tory S. Anderson, 2014/09/15
- Re: cleaning up a big regexp, Stefan Monnier, 2014/09/15
- Regexp in nnmail-split-methods (was Re: cleaning up a big regexp), Tory S. Anderson, 2014/09/16
- Message not available
- Re: Regexp in nnmail-split-methods (was Re: cleaning up a big regexp), sokobania . 01, 2014/09/16