Variable: hpath:markup-link-anchor-regexp

hpath:markup-link-anchor-regexp is a variable defined in hpath.el.

Value

"\\`\\(#?[^#+]*[^#+.]\\)?\\(#\\)\\([^][#+^{}<>\"`'\\\n	\f
]*\\)"

Documentation

Regexp matching a filename followed by a hash (#) and an optional anchor name.

The optional filename is group 1, though if it ends with a # then that includes group 2. The anchor is an in-file reference. Its leading # is group 2. Group 3 is the optional anchor name; if it is empty, then group 2 is part of the filename.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hpath.el
(defconst hpath:markup-link-anchor-regexp
  "\\`\\(#?[^#+]*[^#+.]\\)?\\(#\\)\\([^\]\[#+^{}<>\"`'\\\n\t\f\r]*\\)"
  "Regexp matching a filename followed by a hash (#) and an optional anchor name.
The optional filename is group 1, though if it ends with a # then that
includes group 2.  The anchor is an in-file reference.  Its leading # is
group 2.  Group 3 is the optional anchor name; if it is empty, then group 2
is part of the filename.")