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

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

About "/" in the regexp


From: Xue Fuqiao
Subject: About "/" in the regexp
Date: Wed, 13 Feb 2013 08:27:26 +0800

In (info "(elisp) Auto Major Mode"), there is an example of how to prepend 
several pattern pairs to `auto-mode-alist':

          (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.

-- 
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao



reply via email to

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