Article View: gnu.emacs.help
Article #188974Re: Directory Files
From: Silver
Date: Thu, 23 May 1991 03:29
Date: Thu, 23 May 1991 03:29
12 lines
1207 bytes
1207 bytes
> I am doing the following (in the scratch buffer): > (directory-files default-directory nil "*.[ch]") > and am getting back nil. GNU Emacs regular expressions are stronger (and, of course, different) than the unix regular expressions a la grep. They taste a little more like egrep's. For definitive documentation, though, consult the Info entry Emacs->Regexps (ie, go into info, follow the "Emacs" entry, then follow the "Regexps" entry). Incidentally, the regexp you probably want is "\\`.*\\.[ch]\\'" (before reading). Regards, [Ag]
Technical Details
Message-ID:
<May.22.23.29.43.1991.19252@yoko.rutgers.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!elroy.jpl.nasa.gov!sdd.hp.com!mips!dimacs.rutgers.edu!aramis.rutgers.edu!paul.rutgers.edu!yoko.rutgers.edu!gaynorReferences:
<1991May21.213101.22515@m.cs.uiuc.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,47d8d87ddf6099a4 X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1991-05-24 11:39:37 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!elroy.jpl.nasa.gov!sdd.hp.com!mips!dimacs.rutgers.edu!aramis.rutgers.edu!paul.rutgers.edu!yoko.rutgers.edu!gaynor From: gaynor@yoko.rutgers.edu (Silver) Newsgroups: gnu.emacs.help Subject: Re: Directory Files Keywords: directory-files, match-regexp Message-ID: <May.22.23.29.43.1991.19252@yoko.rutgers.edu> Date: 23 May 91 03:29:44 GMT References: <1991May21.213101.22515@m.cs.uiuc.edu> Organization: Rutgers Univ., New Brunswick, N.J. Lines: 12