Function: tramp-build-remote-file-name-spec-regexp
tramp-build-remote-file-name-spec-regexp is a byte-compiled function
defined in tramp.el.gz.
Signature
(tramp-build-remote-file-name-spec-regexp)
Documentation
Construct a regexp matching a Tramp file name for a Tramp syntax.
It is expected, that tramp-syntax has the proper value.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
;;; File name format:
(defun tramp-build-remote-file-name-spec-regexp ()
"Construct a regexp matching a Tramp file name for a Tramp syntax.
It is expected, that `tramp-syntax' has the proper value."
(concat
"\\(" tramp-method-regexp "\\)" tramp-postfix-method-regexp
"\\(?:" "\\(" tramp-user-regexp "\\)" tramp-postfix-user-regexp "\\)?"
"\\(" "\\(?:" tramp-host-regexp "\\|"
tramp-prefix-ipv6-regexp "\\(?:" tramp-ipv6-regexp "\\)?"
tramp-postfix-ipv6-regexp "\\)"
"\\(?:" tramp-prefix-port-regexp tramp-port-regexp "\\)?" "\\)?"))