From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Le TeXnicien de Surface Newsgroups: gmane.emacs.help Subject: Re: auto-mode-alist - recognize prefix instead of sufix? Date: Sat, 22 Mar 2008 16:57:13 +0100 Organization: les newsgroups par Orange Message-ID: <47e52c59$0$882$ba4acef3@news.orange.fr> References: <47E1A5D1.7030902@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8Bit X-Trace: ger.gmane.org 1206208472 4650 80.91.229.12 (22 Mar 2008 17:54:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Mar 2008 17:54:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 22 18:55:02 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jd7vq-0003TS-2i for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Mar 2008 18:55:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jd7vF-0006n5-0K for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Mar 2008 13:54:25 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!exabot.com!freenix!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: KNode/0.10.4 Original-Lines: 20 Original-NNTP-Posting-Date: 22 Mar 2008 16:57:14 CET Original-NNTP-Posting-Host: 83.204.31.216 Original-X-Trace: 1206201434 news.orange.fr 882 83.204.31.216:60103 Original-X-Complaints-To: abuse@orange.fr Original-Xref: shelby.stanford.edu gnu.emacs.help:157266 X-Mailman-Approved-At: Sat, 22 Mar 2008 13:53:43 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:52639 Archived-At: 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