From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dieter Wilhelm Newsgroups: gmane.emacs.help Subject: Re: Regexp for marking source code Date: Tue, 08 Aug 2006 23:12:43 +0200 Organization: The Church of Emacs Message-ID: <87k65jhqyc.fsf@hans.local.net> References: <44d8c969$1@news.greennet.net> <85slk8xxej.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1155124273 27827 80.91.229.2 (9 Aug 2006 11:51:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 9 Aug 2006 11:51:13 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 09 13:51:12 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GAmaV-0006WB-Ck for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Aug 2006 13:51:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GAmaV-0003ne-0y for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Aug 2006 07:51:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GAmaI-0003nO-Gs for help-gnu-emacs@gnu.org; Wed, 09 Aug 2006 07:50:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GAmaE-0003hk-I6 for help-gnu-emacs@gnu.org; Wed, 09 Aug 2006 07:50:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GAmaE-0003hf-Eo for help-gnu-emacs@gnu.org; Wed, 09 Aug 2006 07:50:46 -0400 Original-Received: from [212.227.126.186] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GAmer-00055U-9K; Wed, 09 Aug 2006 07:55:33 -0400 Original-Received: from [84.167.38.12] (helo=duenenhof-wilhelm.de) by mrelayeu.kundenserver.de (node=mrelayeu0) with ESMTP (Nemesis), id 0MKwh2-1GAma903h2-0004Zj; Wed, 09 Aug 2006 13:50:41 +0200 Original-Received: by duenenhof-wilhelm.de (Postfix, from userid 1000) id EF5384F88D; Tue, 8 Aug 2006 23:12:43 +0200 (CEST) Original-To: David Kastrup In-Reply-To: <85slk8xxej.fsf@lola.goethe.zz> (David Kastrup's message of "Mon, 07 Aug 2006 19:34:28 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Provags-ID: kundenserver.de abuse@kundenserver.de login:d7ab225b98a136e1c2910381f940ecb9 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:36570 Archived-At: David Kastrup writes: > Ken Goldman writes: > >> The dired Q command seems quite useful, but >> regexp syntax is obscure enough that I can't quite >> get what I want. >> >> What would be a regexp for all .c and .h files. >> In a Unix shell, it would be *.[ch], What's the >> regexp equivalent? > > .*\.[ch]\' quick and dirty \.[ch]$ since the likely hood of existing hidden files `.h' and `.c' is too small for the hassle of typing .* -- Best wishes H. Dieter Wilhelm Darmstadt, Germany