[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About "/" in the regexp
From: |
Xue Fuqiao |
Subject: |
Re: About "/" in the regexp |
Date: |
Thu, 14 Feb 2013 07:52:54 +0800 |
On Tue, 12 Feb 2013 20:01:52 -0800
"Drew Adams" <drew.adams@oracle.com> wrote:
> > (setq auto-mode-alist
> > (append
> > ;; File name (within directory) starts with a dot.
> > '(("/\\.[^/]*\\'" . fundamental-mode)
> > ;; File name has no dot.
> > ("/[^\\./]*\\'" . fundamental-mode)
> > ...)
> > auto-mode-alist))
> >
> > I'm confused about the first "/" in the two regular
> > expressions.
> It's for a file name "within [a] directory", e.g., /foobar.
> The / is the directory separator.
I see, thanks.
--
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao