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: Oliver Scholz
Subject: Re: regexp NOT matching an extension
Date: Tue, 16 Sep 2003 10:03:24 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (windows-nt)

"Leo" <address@hidden> writes:

> hi there
>
> in dired-omit-files i need a regexp matching all files without the extension
> '.pem'.
>
> i tried
>     [^.][^p][^e][^m]$
> but it doesn't work. however a one-char-negation like
>     [^m]$
> works.
>
> any idea?
>
> thanks, leo

"\\(?:[^.]...\\|\\.[^p]..\\|\\.p[^e].\\|\\.pe[^m]\\)$"


[as an aside note to a recent related thread: I think this is still
not what Perl users would expect according to
<address@hidden>, since it
simply matches any four character sequence not identical to
".pem". However, I start to wonder whether x\\(!:top\\)y is actually
still a _regular_ and not rather a _context free_ expression.]

    Oliver
-- 
30 Fructidor an 211 de la Révolution
Liberté, Egalité, Fraternité!


reply via email to

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