[Top][All Lists]

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

About backslash in regexp

From: Xue Fuqiao
Subject: About backslash in regexp
Date: Sat, 16 Mar 2013 10:50:16 +0800

I understand that the usual regexp special characters are not special
inside a character alternative.  But in the definition of the function

(defun command-line-normalize-file-name (file)
  (string-match "^[A-Za-z]:\\(\\\\[\\\\/]\\)" file) ; C:\/ or C:\\

There four backslashes in the `[ ... ]' construct here, why?  Aren't
they duplicated?

Xue Fuqiao

reply via email to

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