Variable: tramp-completion-file-name-regexp-default

tramp-completion-file-name-regexp-default is a variable defined in tramp.el.gz.

Value

"\\`/\\(\\([^/|:]+:[^/|:]*|\\)*[^/|:]+\\(:[^/|:]*\\)?\\)?\\'"

Documentation

Value for tramp-completion-file-name-regexp for default remoting.

See tramp-file-name-structure for more explanations.

On W32 systems, the volume letter must be ignored.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defconst tramp-completion-file-name-regexp-default
  (concat
   "\\`"
   ;; `file-name-completion' uses absolute paths for matching.  This
   ;; means that on W32 systems, something like "/ssh:host:~/path"
   ;; becomes "c:/ssh:host:~/path".  See also `tramp-drop-volume-letter'.
   (when (eq system-type 'windows-nt)
       "\\(?:[[:alpha:]]:\\)?")
   "/\\("
   ;; Optional multi hop.
   "\\([^/|:]+:[^/|:]*|\\)*"
   ;; Last hop.
   (if (memq system-type '(cygwin windows-nt))
       ;; The method is either "-", or at least two characters.
       "\\(-\\|[^/|:]\\{2,\\}\\)"
     ;; At least one character for method.
     "[^/|:]+")
   ;; Method separator, user name and host name.
   "\\(:[^/|:]*\\)?"
   "\\)?\\'")
  "Value for `tramp-completion-file-name-regexp' for default remoting.
See `tramp-file-name-structure' for more explanations.

On W32 systems, the volume letter must be ignored.")