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

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

RE: About "/" in the regexp


From: Drew Adams
Subject: RE: About "/" in the regexp
Date: Tue, 12 Feb 2013 20:01:52 -0800

>           (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.  Why is there a slash character?  Can anybody 
> help?  Thanks.

It's for a file name "within [a] directory", e.g., /foobar.
The / is the directory separator.




reply via email to

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