[Top][All Lists]

[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
             ;; File name (within directory) starts with a dot.
             '(("/\\.[^/]*\\'" . fundamental-mode)
               ;; File name has no dot.
               ("/[^\\./]*\\'" . fundamental-mode)

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.

reply via email to

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