Variable: hpath:path-variable-value-regexp
hpath:path-variable-value-regexp is a variable defined in hpath.el.
Value
"\\`\\.?:[^:;<>:\"|?* \n
\f[:cntrl:]]+:[^:;<>:\"|?* \n
\f[:cntrl:]]+:\\|:\\.?:[^:;<>:\"|?* \n
\f[:cntrl:]]+:\\|:[^:;<>:\"|?* \n
\f[:cntrl:]]+:[^:;<>:\"|?* \n
\f[:cntrl:]]+:\\|:[^:;<>:\"|?* \n
\f[:cntrl:]]+:[^:;<>:\"|?* \n
\f[:cntrl:]]+:\\.?\\'\\|\\`\\.?;[^;<>:\"|?* \n
\f[:cntrl:]]+;[^;<>:\"|?* \n
\f[:cntrl:]]+;\\|;\\.?;\\|;[^;<>:\"|?* \n
\f[:cntrl:]]+;[^;<>:\"|?* \n
\f[:cntrl:]]+;\\|;[^;<>:\"|?* \n
\f[:cntrl:]]+;[^;<>:\"|?* \n
\f[:cntrl:]]+;\\|;[^;<>:\"|?* \n
\f[:cntrl:]]+;[^;<>:\"|?* \n
\f[:cntrl:]]+;\\.?\\'"
Documentation
Regexp that heuristically matches to Posix or Windows path variable values.
Posix has colon-separated and Windows has semicolon-separated path variable values.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hpath.el
(defvar hpath:path-variable-value-regexp
(let* ((posix-separators ":;")
(windows-separators ";")
(reserved-chars "<>:\"|?*")
(exclude-space "\t\n\r\f")
(control-chars "[:cntrl:]")
;; Posix char set to exclude from paths
(nope (concat "\[^" posix-separators reserved-chars exclude-space control-chars "\]+"))
;; Windows char set to exclude from paths
(nowin (concat "\[^" windows-separators reserved-chars exclude-space control-chars "\]+")))
(concat "\\`\\.?:" nope ":" nope ":\\|:\\.?:" nope ":\\|:" nope ":" nope ":\\|:" nope ":" nope ":\\.?\\'"
"\\|"
"\\`\\.?;" nowin ";" nowin ";\\|;\\.?;\\|;" nowin ";" nowin ";\\|;" nowin ";" nowin ";\\|;" nowin ";" nowin ";\\.?\\'"))
;; A zero-length (null) directory name in the value of PATH indicates the current directory.
;; A null directory name may appear as two adjacent colons, or as an initial or trailing colon.
"Regexp that heuristically matches to Posix or Windows path variable values.
Posix has colon-separated and Windows has semicolon-separated
path variable values.")