[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: auto-mode-alist - recognize prefix instead of sufix?
From: |
Le TeXnicien de Surface |
Subject: |
Re: auto-mode-alist - recognize prefix instead of sufix? |
Date: |
Sat, 22 Mar 2008 16:57:13 +0100 |
User-agent: |
KNode/0.10.4 |
Christian Herenz écrivait :
>
>> So the regexp should be something like "\\(\\`\\|/\\)foo\.[^/]*\\'"
>>
>
> I dont get it working :(
>
> I have files called:
> nb_edit-newentry-*************.txt (where stars numbers and letters).
>
> What would be a correct Regexp for that?
something as
nb_edit-newentry-.*\.txt
should suffice with a direct command such as query-replace-regexp
if you need to write this regexp in a el-file double the \
hih
--
Le TeXnicien de Surface