[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Setting file extensions to be handled by gpg encryption problem
From: |
Stefan Monnier |
Subject: |
Re: Setting file extensions to be handled by gpg encryption problem |
Date: |
Wed, 08 Dec 2010 15:35:21 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> Here is the default regexp:
> "\\.gpg\\(~\\|\\.~[0-9]+~\\)?\\'"
> Here what you could use:
> "\\.gpg\\|\\.txt\\(~\\|\\.~[0-9]+~\\)?\\'"
> You don't need two groups.
Well, you do in that case:
"\\.\\(gpg\\|txt\\)\\(~\\|\\.~[0-9]+~\\)?\\'"
because your regexp matches ".txt~" but not ".gpg~".
Stefan