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

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

Re: regexp NOT matching an extension


From: Gareth Rees
Subject: Re: regexp NOT matching an extension
Date: 16 Sep 2003 07:25:01 -0700

Leo wrote:
> In dired-omit-files I need a regexp matching all files without the
> extension '.pem'.

You need this regexp:

    [^m]$\|[^e]m$\|[^p]em$\|[^.]pem$

Your regexp [^m]$ appears to work because it's the first alternative
that catches most of the files you want to exclude: only files ending in
'm' go on to be considered by the other three cases.

-- 
Gareth Rees


reply via email to

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