[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" <leo.broska@NOSPAM.isys.com.au> 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
<84isogutgt.fsf@slowfox.is.informatik.uni-duisburg.de>, 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é!
- regexp NOT matching an extension, Leo, 2003/09/15
- Re: regexp NOT matching an extension,
Oliver Scholz <=
- rendering a string as a new line?, Janusz S. Bień, 2003/09/16
- Re: regexp NOT matching an extension, Gareth Rees, 2003/09/16
- Message not available
- Re: rendering a string as a new line?, Stefan Monnier, 2003/09/16
- Message not available
- Re: rendering a string as a new line?, Oliver Scholz, 2003/09/18
- Re: rendering a string as a new line?, Kevin Rodgers, 2003/09/18
- Re: rendering a string as a new line?, Oliver Scholz, 2003/09/19
- Re: rendering a string as a new line?, Janusz S. Bień, 2003/09/19