Function: hys-denote-get-link-regexp

hys-denote-get-link-regexp is a byte-compiled function defined in hsys-denote.el.

Signature

(hys-denote-get-link-regexp)

Documentation

Return regexp matching a denote id plus optional #section implicit button.

Fail with an error when the denote library has not been required by the caller.

Group 1 is the denote file id; Group 3 is the optional #section or ::[#*]?section referring to a section heading within the file. Group 4 is the '#' or '::[#*]?' section prefix. Group 5 is the section without the prefix.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260822.1645/hsys-denote.el
(defun hys-denote-get-link-regexp ()
  "Return regexp matching a denote id plus optional #section implicit button.
Fail with an error when the denote library has not been required
by the caller.

Group 1 is the denote file id;
Group 3 is the optional #section or ::[#*]?section referring to a section
heading within the file.
Group 4 is the '#' or '::[#*]?' section prefix.
Group 5 is the section without the prefix."
  ;; Note: this must stay as a function and not a constant since the denote
  ;; variable used herein may not be defined until some other function is
  ;; called.
    (concat
     "denote:" denote-date-identifier-regexp
     "\\(\\(::[#*]?\\|#\\)\\([^][(){}<>'`\"*#:; \t\n\r\f][^][ \t\n\r\f\"]*\\)\\)?"))