all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dieter Wilhelm <dieter@duenenhof-wilhelm.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Regexp for marking source code
Date: Tue, 08 Aug 2006 23:12:43 +0200	[thread overview]
Message-ID: <87k65jhqyc.fsf@hans.local.net> (raw)
In-Reply-To: <85slk8xxej.fsf@lola.goethe.zz> (David Kastrup's message of "Mon, 07 Aug 2006 19:34:28 +0200")

David Kastrup <dak@gnu.org> writes:

> Ken Goldman <kgold@watson.ibm.com> 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

  parent reply	other threads:[~2006-08-08 21:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-07 17:28 Regexp for marking source code Ken Goldman
2006-08-07 17:34 ` David Kastrup
2006-08-07 20:59   ` Org mode modifies files Sébastien Vauban
2006-08-10  5:33     ` claudine
2006-08-13 12:34       ` Sébastien Vauban
2006-08-08 21:12   ` Dieter Wilhelm [this message]
     [not found]   ` <mailman.5022.1155124251.9609.help-gnu-emacs@gnu.org>
2006-08-09 12:08     ` Regexp for marking source code David Kastrup
2006-08-14 21:13       ` Dieter Wilhelm
2006-08-15 20:58         ` David Kastrup
2006-09-06  4:06 ` David Combs
2006-09-06 17:51   ` Eli Zaretskii
2006-09-06 18:10     ` Arnaldo Mandel
2006-09-06 18:28       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k65jhqyc.fsf@hans.local.net \
    --to=dieter@duenenhof-wilhelm.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.