[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cleaning up a big regexp
From: |
Michael Albinus |
Subject: |
Re: cleaning up a big regexp |
Date: |
Mon, 15 Sep 2014 14:18:16 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
torys.anderson@gmail.com (Tory S. Anderson) writes:
> (setq my-gnus-bulk-from-address-regexp (mapconcat `regexp-quote
> my-gnus-bulk-from-address-list "\\|")) ;; make OR
Use a single apostroph "'" here.
> (setq my-gnus-bulk-from-regexp
> (regexp-opt (mapconcat `(concat "^From:.*")
> my-gnus-bulk-from-address-regexp "\\|"))) ;; apply "From.*" to the start of
> each address
That's wrong. You `concat' just one element, not needed. `regexp-opt'
cannot be applied over meta characters, like "*". Even if you quote
them, it doesn't work.
Best regards, Michael.
- cleaning up a big regexp, Tory S. Anderson, 2014/09/15
- Re: cleaning up a big regexp, Joost Kremers, 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, Tory S. Anderson, 2014/09/15
- Re: cleaning up a big regexp,
Michael Albinus <=
- 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
- RESOLVED Re: Regexp in nnmail-split-methods (was Re: cleaning up a big regexp), Tory S. Anderson, 2014/09/17