help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regexp for marking source code


From: Dieter Wilhelm
Subject: Re: Regexp for marking source code
Date: Tue, 08 Aug 2006 23:12:43 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]